Electronic pen calibration method and device, electronic equipment and storage medium

By collecting ambient temperature data and performing adaptive processing, the water outlet reference parameters are determined and the water outlet threshold of the electronic pen is calibrated, which solves the problem of ink leakage or accidental touch during temperature changes, and achieves stable use under different temperature conditions .

CN119473030APending Publication Date: 2025-02-18SHENZHEN XINWEI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411459824.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

When the electronic pen is left to stand in a low-temperature environment and then turned to a normal temperature environment, it is prone to ink leakage or mistouching. The reason is that the self-calibration of the pen tip is affected by temperature changes.

Method used

By responding to the self-calibration status of the electronic pen, a self-calibration instruction is formed, ambient temperature data is collected, the matching water effluent determination difference is obtained, the electronic pen is subject to environmental adaptation processing based on the ambient temperature data, the water effluent reference parameter is determined, and the target water effluent threshold is performed. Calibration processing.

Benefits of technology

It effectively avoids the impact of temperature changes on the electronic pen, prevents ink leakage or mistouch, and ensures the stable use of the electronic pen under different temperature conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473030A_ABST
    Figure CN119473030A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electronic pen calibration method and device, electronic equipment and a storage medium, and belongs to the technical field of terminal equipment. The method comprises the steps of forming a self-calibration instruction in response to the fact that the electronic pen is configured to be in a self-calibration state; performing temperature collection on a target environment according to the self-calibration instruction to obtain environment temperature data; wherein the target environment is the environment where the electronic pen is located; obtaining a water outlet judgment difference matched with the environment temperature data; environment adaptation processing is conducted on the electronic pen based on the environment temperature data, and water outlet reference parameters are determined; and on the basis of the water outlet reference parameter and the water outlet judgment difference, carrying out calibration processing on a target water outlet threshold value of the electronic pen. According to the embodiment, the problem that the electronic pen is mistakenly touched due to temperature change can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of terminal devices, and in particular to an electronic pen calibration method, device, electronic device and storage medium. Background Art

[0002] In the related art, when the electronic pen is left in a low-temperature environment for a period of time and then used in a normal temperature environment, ink leakage or false touches may occur on the tablet screen. This is because the self-calibration of the pen tip is affected by temperature changes. Therefore, how to self-calibrate the electronic pen to avoid ink leakage or false touches caused by temperature changes has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to provide an electronic pen calibration method, device, electronic device and storage medium, aiming to avoid the problem of false touch of the electronic pen due to temperature changes.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides an electronic pen calibration method, the method comprising:

[0005] In response to the electronic pen being configured in a self-calibration state, forming a self-calibration instruction;

[0006] According to the self-calibration instruction, the temperature of the target environment is collected to obtain the ambient temperature data; wherein the target environment is the environment where the electronic pen is located;

[0007] Acquiring a water outlet determination difference that matches the ambient temperature data;

[0008] Performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine a water discharge reference parameter;

[0009] Based on the water outflow reference parameter and the water outflow determination difference, a target water outflow threshold value of the electronic pen is calibrated.

[0010] In some embodiments, the performing environmental adaptation processing on the electronic pen based on the environmental temperature data before determining the water output reference parameter includes:

[0011] Obtaining a no-load pressure value of the electronic pen tip at every preset basic sampling time; wherein the no-load pressure value represents a pressure value obtained by the electronic pen tip when no pressure is applied to the electronic pen tip;

[0012] An average value is processed based on a preset first number of no-load pressure values ​​to obtain a basic calibration value.

[0013] In some embodiments, performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter includes:

[0014] Adjust the basic sampling time based on the ambient temperature data to obtain a target sampling time;

[0015] Acquire the no-load pressure value of the electronic pen tip at every target sampling time;

[0016] The water outlet reference parameter is obtained by performing average processing based on the first number of no-load pressure values.

[0017] In some embodiments, performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter further includes:

[0018] Obtaining a temperature change difference according to the ambient temperature data within a preset temperature sampling time;

[0019] Adjust the first number based on the temperature change difference to obtain a target number;

[0020] The water outlet reference parameter is obtained by performing average processing on the no-load pressure values ​​of the target number.

[0021] In some embodiments, performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter further includes:

[0022] Based on the ambient temperature data, determining a target temperature interval from a plurality of preset candidate temperature intervals, wherein each of the candidate temperature intervals is configured with a corresponding calibration correction value;

[0023] The basic calibration value is corrected according to the calibration correction value to obtain the water outlet reference parameter.

[0024] In some embodiments, before determining the target temperature region from a plurality of preset candidate temperature intervals based on the ambient temperature data, the method further includes presetting a plurality of the candidate temperature intervals, including:

[0025] Setting different temperature intervals to obtain a plurality of candidate temperature intervals;

[0026] Adjusting the ambient temperature to each of the candidate temperature intervals, and acquiring the no-load pressure value according to the basic sampling time;

[0027] Performing average processing based on the first number of no-load pressure values ​​to obtain a basic calibration value corresponding to each of the candidate temperature intervals;

[0028] A deviation value is set for the basic calibration value corresponding to each of the candidate temperature intervals to obtain the calibration correction value configured for each of the candidate temperature intervals.

[0029] In some embodiments, performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter further includes:

[0030] Setting a calibration change threshold based on a temperature change trend represented by the ambient temperature data;

[0031] When the ambient temperature data indicates that the ambient temperature drops, the basic calibration value is subjected to a change limiting process according to the calibration change threshold value to obtain the water outlet reference parameter.

[0032] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides an electronic pen calibration device, the device comprising:

[0033] An instruction forming module, for forming a self-calibration instruction in response to the electronic pen being configured in a self-calibration state;

[0034] A temperature acquisition module, used to acquire the temperature of a target environment according to the self-calibration instruction to obtain environmental temperature data; wherein the target environment is the environment where the electronic pen is located;

[0035] A difference data acquisition module, used to acquire a water outlet determination difference matching the ambient temperature data;

[0036] A reference parameter acquisition module, used for performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter;

[0037] The calibration processing module is used to calibrate the target water outflow threshold value of the electronic pen based on the water outflow reference parameter and the water outflow determination difference.

[0038] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the electronic pen calibration method described in the first aspect is implemented.

[0039] To achieve the above-mentioned purpose, a fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the electronic pen calibration method described in the first aspect is implemented.

[0040] The electronic pen calibration method, device, electronic device and storage medium proposed in the present application, in response to the electronic pen being configured in a self-calibration state, forms a self-calibration instruction, and then collects the temperature of the target environment according to the self-calibration instruction to obtain the ambient temperature data, wherein the target environment is the environment where the electronic pen is located. Then, the water outflow determination difference matching the ambient temperature data is obtained, and the electronic pen is subjected to environmental adaptation processing based on the ambient temperature data to determine the water outflow reference parameter, and then the target water outflow threshold of the electronic pen is calibrated based on the water outflow reference parameter and the water outflow determination difference. Therefore, the present application collects ambient temperature data, and adaptively adjusts based on the ambient temperature data to determine the water outflow reference parameter, and realizes accurate electronic pen calibration through the water outflow reference parameter and the water outflow determination difference, thereby avoiding the influence of temperature changes on the electronic pen, so as to avoid ink leakage or false touch. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of the electronic pen calibration method provided in an embodiment of the present application;

[0042] Figure 2 yes Figure 1 The flowchart before step S104 in FIG.

[0043] Figure 3 yes Figure 1 Flow chart of step S104 in FIG.

[0044] Figure 4 yes Figure 1 Another flow chart of step S104 in FIG. 1 ;

[0045] Figure 5 yes Figure 1 Another flow chart of step S104 in FIG. 1 ;

[0046] Figure 6 yes Figure 5 The flowchart before step S501 in FIG.

[0047] Figure 7 yes Figure 1 Another flow chart of step S104 in FIG. 1 ;

[0048] Figure 8 is a schematic diagram of the change of the no-load pressure value obtained by the tip of the electronic pen provided in an embodiment of the present application over time;

[0049] Fig. 9 is a schematic diagram of the temperature change over time of the environment in which the electronic pen is located provided by an embodiment of the present application;

[0050] Fig.10 is a schematic diagram of the structure of the electronic pen calibration device provided in an embodiment of the present application;

[0051] Fig.11 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0055] The embodiments of the present application provide an electronic pen calibration method, device, electronic device and storage medium, aiming to avoid the problem of false touch of the electronic pen due to temperature changes.

[0056] The electronic pen calibration method, device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the electronic pen calibration method in the embodiments of the present application is described.

[0057] Figure 1 is an optional flow chart of the electronic pen calibration method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.

[0058] Step S101, in response to the electronic pen being configured in a self-calibration state, forming a self-calibration instruction;

[0059] Step S102, collecting temperature of a target environment according to the self-calibration instruction to obtain ambient temperature data; wherein the target environment is the environment where the electronic pen is located;

[0060] Step S103, obtaining a water outlet determination difference that matches the ambient temperature data;

[0061] Step S104, performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter;

[0062] Step S105 , calibrating the target water discharge threshold of the electronic pen based on the water discharge reference parameter and the water discharge determination difference.

[0063] Steps S101 to S105 shown in the embodiment of the present application, in response to the electronic pen being configured in a self-calibration state, form a self-calibration instruction, and then collect the temperature of the target environment according to the self-calibration instruction to obtain ambient temperature data, wherein the target environment is the environment in which the electronic pen is located. Then, the water outflow determination difference matching the ambient temperature data is obtained, and the electronic pen is subjected to environmental adaptation processing based on the ambient temperature data to determine the water outflow reference parameter, and then the target water outflow threshold of the electronic pen is calibrated based on the water outflow reference parameter and the water outflow determination difference. Therefore, the present application collects ambient temperature data, and adaptively adjusts based on the ambient temperature data to determine the water outflow reference parameter, and realizes accurate electronic pen calibration through the water outflow reference parameter and the water outflow determination difference, thereby avoiding the influence of temperature changes on the electronic pen, so as to avoid ink leakage or false touch.

[0064] In step S101 of some embodiments, a self-calibration instruction is generated to perform self-calibration of the electronic pen. The self-calibration state indicates that the electronic pen will perform self-calibration, which is different from the state in which the electronic pen is in use and writing. The configuration of the self-calibration state means that the hardware and software systems of the electronic pen have been configured to be able to recognize and respond to the need for self-calibration.

[0065] It should be noted that the electronic pen here refers to an electronic stylus. Ink leakage does not mean that ink actually leaks out, but refers to the fact that on a tablet or other similar touch-screen device, when the user does not apply any pressure to the tip of the electronic pen, the tablet screen receives the touch signal from the electronic pen and generates strokes on the screen. The false touch phenomenon is similar, when the user does not apply any pressure to the tip of the electronic pen, the screen of a tablet or other device receives the touch signal from the electronic pen.

[0066] In step S102 of some embodiments, during the self-calibration process of the electronic pen, the accuracy of temperature acquisition is very important. The temperature sensor integrated inside the electronic pen is responsible for real-time monitoring and recording the ambient temperature of the environment in which it is located. The temperature sensor can have the characteristics of high precision and fast response, so as to be able to capture small changes in ambient temperature, and convert these changes into electrical signals, and then convert them into readable temperature data to obtain ambient temperature data.

[0067] In step S103 of some embodiments, a water outflow determination difference matching the ambient temperature data is obtained, wherein the water outflow determination difference simulates the pressure value used by the user when using the electronic pen. For example, when the user uses the electronic pen and presses the tip of the electronic pen on the screen of a device such as a tablet, it only takes 5g of pressure to apply to the tip of the electronic pen to determine that the electronic pen needs to send a touch signal, and this 5g of pressure can be regarded as the water outflow determination difference.

[0068] In some embodiments, the ink drawn by the electronic pen on the screen of a device such as a tablet with different forces corresponds to different thicknesses, and the temperature change will affect the sensor of the electronic pen tip, causing the sensitivity of the electronic pen to change, so that the user may have an incorrect ink thickness when using the electronic pen. By modifying the water discharge judgment difference based on the ambient temperature data, the touch pressure of the electronic pen can be kept at a certain value, thereby preventing the temperature change from changing the sensitivity of the electronic pen.

[0069] In step S104 of some embodiments, the temperature sensor built into the electronic pen monitors and records the ambient temperature in real time, and performs adaptive processing on the electronic pen according to the obtained ambient temperature data to adjust the water discharge reference parameter.

[0070] It should be noted that the sensors usually detect analog signals, which need to be converted into digital form for processing by microprocessors or other digital circuits. When no pressure is applied, the pressure sensor at the tip of the electronic pen will read a certain digital signal value, i.e., the no-load pressure value, through an analog-to-digital converter.

[0071] When no pressure is applied to the tip of the electronic pen, a certain number of no-load pressure values ​​will be read to obtain an average value as the basic calibration value of the electronic pen. When the tip of the electronic pen is subjected to a force converted from the water discharge determination difference under the basic calibration value, the electronic pen will be considered to be in a working state and send out a touch signal. The target water discharge threshold of the electronic pen is the sum of the basic calibration value and the water discharge determination difference.

[0072] The reason why the electronic pen leaks ink or touches by mistake is that the no-load pressure value of the electronic pen tip changes with the temperature. In this state, some of the no-load pressure values ​​read by the electronic pen are constantly changing, and the calculated basic calibration value may not be applicable to environments with different temperatures. In some cases, the no-load pressure value read by the electronic pen tip will be greater than the target water discharge threshold, and the electronic pen will leak ink or touch by mistake. This situation is particularly likely to occur in winter when the user carries the electronic pen from the cold outdoor environment back to the warmer indoor environment.

[0073] The electronic pen is adapted to the environment based on the ambient temperature data, the basic calibration value of the electronic pen is adjusted, and the ink output reference parameter is obtained, so that the electronic pen can achieve adaptive adjustment under different temperature conditions, thereby allowing users to avoid ink leakage or false touch caused by temperature changes when using the electronic pen.

[0074] In step S105 of some embodiments, the water discharge reference parameter and the water discharge determination difference are added to obtain the target water discharge threshold of the electronic pen, and the electronic pen is calibrated based on the target water discharge threshold. By using the water discharge reference parameter and the water discharge determination difference, two data that adapt to the change based on the ambient temperature data, the electronic pen can adapt to the change of the ambient temperature and adaptively change the target water discharge threshold, so that the electronic pen can maintain a stable user experience.

[0075] See also Figure 2 In some embodiments, the steps before step S104 may include but are not limited to steps S201 to S202:

[0076] Step S201, obtaining a no-load pressure value of the electronic pen tip at every preset basic sampling time; wherein the no-load pressure value refers to a pressure value obtained by the electronic pen tip when no pressure is applied to the electronic pen tip;

[0077] Step S202 , performing average processing based on a preset first number of no-load pressure values ​​to obtain a basic calibration value.

[0078] In step S201 of some embodiments, when the tip of the electronic pen is not subjected to any pressure, the pressure value of the tip pressure sensor is acquired at every preset basic sampling time to obtain a no-load pressure value.

[0079] In step S202 of some embodiments, average processing is performed based on a preset first number of no-load pressure values ​​to obtain a basic calibration value.

[0080] When the temperature remains unchanged, a stable no-load pressure value can be obtained through steps S201 to S202, so that the electronic pen can work stably.

[0081] See also Figure 3 In some embodiments, step S104 may include but is not limited to steps S301 to S303:

[0082] Step S301, adjusting the basic sampling time based on the ambient temperature data to obtain the target sampling time;

[0083] Step S302, obtaining the no-load pressure value of the electronic pen tip every target sampling time;

[0084] Step S303, performing average processing based on the first number of no-load pressure values ​​to obtain a water outlet reference parameter.

[0085] In some embodiments, in steps S301 to S303, the basic sampling time is adjusted based on the ambient temperature data to shorten the sampling time to obtain the target sampling time, and the no-load pressure value of the electronic pen tip is obtained every target sampling time, and then the average value is processed based on the first number of no-load pressure values ​​to obtain the water discharge reference parameter.

[0086] Through steps S301 to S303, the basic sampling time is adjusted according to the ambient temperature data and the sampling time is shortened, so that the electronic pen can collect the no-load pressure value more frequently and the no-load pressure value can be updated in time, thereby preventing the first number of no-load pressure values ​​from being excessively affected by changes caused by temperature changes.

[0087] From another perspective, by collecting no-load pressure values ​​more frequently, the first number of no-load pressure values ​​can reduce the difference in no-load pressure value changes caused by temperature changes, avoiding the difference between the minimum no-load pressure value and the maximum no-load pressure value caused by temperature changes in the first number of no-load pressure values ​​being too large, thereby affecting the result of the average value calculation.

[0088] Timely updating of the water outlet reference parameters can also allow the water outlet reference parameters to change in line with temperature changes.

[0089] In some embodiments, a specific temperature interval can be set, and different target sampling times can be set for different temperature intervals. This is because the change of the no-load pressure value of the electronic pen tip with the temperature change is nonlinear. In some temperature intervals, the change of the no-load pressure value is not significant, while in other temperature intervals, the change of the no-load pressure value is very obvious. Therefore, a shorter target sampling time can be set in the temperature interval corresponding to the significant change of the no-load pressure value, so that the change of the no-load pressure value can keep up with the change of temperature and reduce the impact of the change of the no-load pressure value caused by the temperature change. In the temperature interval corresponding to the no-load pressure value change is not significant, a slightly longer target sampling time is set, thereby reducing the energy consumption of the electronic pen. In some embodiments, the first number can also be directly modified to reduce the first number, so as to achieve the same effect of reducing the impact of the change of the no-load pressure value caused by the temperature change.

[0090] See also Figure 4 In some embodiments, step S104 may include but is not limited to steps S401 to S403:

[0091] Step S401, obtaining a temperature change difference according to the ambient temperature data within a preset temperature sampling time;

[0092] Step S402, adjusting the first number based on the temperature change difference to obtain a target number;

[0093] Step S403, performing average processing based on the target number of no-load pressure values ​​to obtain a water outlet reference parameter.

[0094] In some embodiments, in steps S401 to S403, the ambient temperature data within a preset temperature sampling time is detected to obtain a temperature change difference, which is the extreme difference of the ambient temperature data within the temperature sampling time, and can reflect whether the temperature change is drastic. Based on the temperature change difference, the first number is adjusted to obtain a target number, and the no-load pressure values ​​of the target number are averaged to obtain a water outlet reference parameter.

[0095] Through step S401 to step S403, the first number is reduced based on the temperature change difference to obtain the target number. This is because each time the average value is processed to obtain the water outlet reference parameter, it is calculated based on the first number of no-load pressure values ​​before this moment. If the temperature changes at a certain moment, the no-load pressure values ​​generated by the temperature change are collected, but the number of these no-load pressure values ​​is not large. At this time, when calculating with the first number of no-load pressure values, since there are some no-load pressure values ​​in the first number that are not affected by the temperature change, and there are some no-load pressure values ​​that are affected by the temperature change, the obtained water outlet reference parameter cannot adapt to the ambient temperature change. Therefore, by reducing the first number to obtain the target number, the average value processing can be performed on fewer no-load pressure values, or the calculation can be performed on more timely no-load pressure values ​​to obtain the water outlet reference parameter. This avoids the no-load pressure value changing due to drastic temperature changes in a short period of time. When participating in the calculation of the water output reference parameter, it is not affected by the no-load pressure value before the temperature change, so that the water output reference parameter can change in time with the temperature change, thereby avoiding the problem of false touch of the electronic pen due to temperature changes.

[0096] See also Figure 5 In some embodiments, step S104 may include but is not limited to steps S501 to S502:

[0097] Step S501, based on the ambient temperature data, determining a target temperature interval from a plurality of preset candidate temperature intervals, wherein each candidate temperature interval is configured with a corresponding calibration correction value;

[0098] Step S502, correcting the basic calibration value according to the calibration correction value to obtain the water outlet reference parameter.

[0099] In steps S501 to S502 of some embodiments, based on the ambient temperature data, a target temperature interval is determined from a plurality of pre-set candidate temperature intervals, and a corresponding calibration correction value is determined, and a basic calibration value is corrected according to the calibration correction value to obtain a water outlet reference parameter. By setting a plurality of candidate temperature intervals, determining which candidate temperature interval the ambient temperature is in, obtaining a target temperature interval, and obtaining a corresponding calibration correction value, and correcting the basic calibration value according to the calibration correction value, a water outlet reference parameter that can adapt to different temperatures is obtained.

[0100] See also Figure 6 In some embodiments, the steps before step S501 may include but are not limited to steps S601 to S604:

[0101] Step S601, setting different temperature intervals to obtain multiple candidate temperature intervals;

[0102] Step S602, adjusting the ambient temperature to each candidate temperature range, and obtaining the no-load pressure value according to the basic sampling time;

[0103] Step S603, performing average processing based on the first number of no-load pressure values ​​to obtain a basic calibration value corresponding to each candidate temperature interval;

[0104] Step S604: setting a deviation value for the basic calibration value corresponding to each candidate temperature interval to obtain a calibration correction value configured for each candidate temperature interval.

[0105] In step S601 of some embodiments, different temperature intervals can be set. It should be noted that the candidate temperature intervals here can be of different ranges. This is because the no-load pressure value has different changing trends in different temperature intervals. In some temperature intervals, the no-load pressure value will change significantly with temperature changes. At this time, it is necessary to divide the temperature interval into a smaller range to obtain candidate temperature intervals, so that the calibration correction value corresponding to each candidate temperature interval can be more adapted to the no-load pressure value in this temperature interval.

[0106] In steps S602 to S603 of some embodiments, the ambient temperature is adjusted to one of the candidate temperature intervals, and the no-load pressure value is obtained according to the basic sampling time. Then, the average value is processed based on the first number of no-load pressure values ​​to obtain the basic calibration value corresponding to each candidate temperature interval. The basic calibration value obtained at this time can represent the state of the electronic pen being no-load and pressure-free in this candidate temperature interval. Repeat the above steps to finally obtain the basic calibration value corresponding to each candidate temperature interval.

[0107] In step S604 of some embodiments, a deviation value is set for the basic calibration value corresponding to each candidate temperature interval to obtain a calibration correction value configured for each candidate temperature interval. It should be noted that the deviation value can be zero. However, in some cases, it is necessary to avoid that the basic calibration value between the candidate temperature intervals changes too much, resulting in a huge difference, so that the user experience of the electronic pen changes greatly in a smaller temperature interval. Therefore, a deviation value is set, and a small value change is made on the basis of the basic calibration value to reduce the difference in the basic calibration value in different candidate temperature intervals.

[0108] In some embodiments, the calibration correction value can be used as the water outlet reference parameter, and the correction process is to adjust the basic calibration value to the calibration correction value to obtain the water outlet reference parameter.

[0109] See also Figure 7 In some embodiments, step S104 may include but is not limited to steps S701 to S702:

[0110] Step S701, setting a calibration change threshold based on the temperature change trend represented by the ambient temperature data;

[0111] Step S702: When the ambient temperature data indicates that the ambient temperature drops, the basic calibration value is subjected to a change limiting process according to a calibration change threshold value to obtain an outlet water reference parameter.

[0112] In some embodiments, in steps S701 to S702, a calibration change threshold is set based on a temperature change trend represented by an ambient temperature change, that is, different calibration change thresholds are set based on different temperature change differences. A corresponding calibration change threshold is selected based on a change difference represented by ambient temperature data within a preset period of time.

[0113] See also Figure 8 and Fig. 9 , Figure 8 and Fig. 9 The horizontal axis is time. Figure 8 The vertical axis is the no-load pressure value. Fig. 9 The vertical axis is temperature, through Figure 8 and Fig. 9 It can be seen that the no-load pressure value obtained by the pressure sensor of the electronic pen tip increases with the increase of temperature and decreases with the decrease of temperature. Ink leakage and false touch generally occur when the temperature rises at a low temperature and the no-load pressure value exceeds the target water discharge threshold.

[0114] Therefore, when the ambient temperature data indicates that the ambient temperature has dropped, the change in the basic calibration value is limited by the calibration change threshold to prevent the basic calibration value from changing too much as the temperature drops. Although the basic calibration value no longer changes with the temperature, the basic calibration value obtained will not drop too low, so that when the temperature rises, the basic calibration value remains at a high level, and the no-load pressure value will not easily exceed the basic calibration value and the target water discharge threshold when the ambient temperature rises, thereby avoiding ink leakage or false touch of the electronic pen due to temperature changes.

[0115] However, the cost of this method is that in low temperature environments, the electronic pen is not convenient for touch operation, which will sacrifice the user's writing experience to a certain extent. Figure 8 and Fig. 9 It can be seen that the no-load pressure value only changes significantly in an environment below about 5°, so in a normal environment, it will not greatly affect the user experience.

[0116] The embodiment of the present application generates a self-calibration instruction in response to the electronic pen being configured in a self-calibration state, and then collects the temperature of the target environment according to the self-calibration instruction to obtain ambient temperature data, wherein the target environment is the environment in which the electronic pen is located. Then, a water outflow determination difference matching the ambient temperature data is obtained, and the electronic pen is subjected to environmental adaptation processing based on the ambient temperature data to determine the water outflow reference parameter, and then the target water outflow threshold of the electronic pen is calibrated based on the water outflow reference parameter and the water outflow determination difference. Therefore, the present application collects ambient temperature data, and adaptively adjusts based on the ambient temperature data to determine the water outflow reference parameter, and realizes accurate electronic pen calibration through the water outflow reference parameter and the water outflow determination difference, thereby avoiding the influence of temperature changes on the electronic pen, and avoiding ink leakage or false touch.

[0117] See also Fig.10 The embodiment of the present application further provides an electronic pen calibration device, which can implement the above electronic pen calibration method, and the device includes:

[0118] An instruction forming module, for forming a self-calibration instruction in response to the electronic pen being configured in a self-calibration state;

[0119] The temperature acquisition module is used to acquire the temperature of the target environment according to the self-calibration instruction to obtain the environmental temperature data; wherein the target environment is the environment where the electronic pen is located;

[0120] A differential data acquisition module is used to obtain a water outlet determination differential that matches the ambient temperature data;

[0121] A reference parameter acquisition module is used to perform environmental adaptation processing on the electronic pen based on the ambient temperature data and determine the water output reference parameter;

[0122] The calibration processing module is used to calibrate the target water discharge threshold value of the electronic pen based on the water discharge reference parameter and the water discharge determination difference.

[0123] The specific implementation of the electronic pen calibration device is substantially the same as the specific implementation of the electronic pen calibration method described above, and will not be described in detail herein.

[0124] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above electronic pen calibration method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0125] See also Fig.11 , Fig.11 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0126] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0127] The memory 1102 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1102 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 calls and executes the electronic pen calibration method of the embodiment of this application;

[0128] Input / output interface 1103, used to implement information input and output;

[0129] The communication interface 1104 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WI FI, Bluetooth, etc.);

[0130] A bus 1105 that transmits information between various components of the device (e.g., the processor 1101, the memory 1102, the input / output interface 1103, and the communication interface 1104);

[0131] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .

[0132] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned electronic pen calibration method is implemented.

[0133] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0134] The electronic pen calibration method, device, electronic device and storage medium provided in the embodiments of the present application, in response to the electronic pen being configured in a self-calibration state, form a self-calibration instruction, and then collect the temperature of the target environment according to the self-calibration instruction to obtain ambient temperature data, wherein the target environment is the environment in which the electronic pen is located. Then, the water outflow judgment difference matching the ambient temperature data is obtained, and the electronic pen is subjected to environmental adaptation processing based on the ambient temperature data to determine the water outflow reference parameter, and then the target water outflow threshold of the electronic pen is calibrated based on the water outflow reference parameter and the water outflow judgment difference. Therefore, the present application collects ambient temperature data, and adaptively adjusts based on the ambient temperature data to determine the water outflow reference parameter, and realizes accurate electronic pen calibration through the water outflow reference parameter and the water outflow judgment difference, thereby avoiding the influence of temperature changes on the electronic pen, so as to avoid ink leakage or false touch.

[0135] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0136] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0137] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0138] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0139] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0140] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0141] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0142] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0143] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0145] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for calibrating an electronic pen, characterized in that: The method comprises: In response to the electronic pen being configured in a self-calibration state, forming a self-calibration instruction; According to the self-calibration instruction, the temperature of the target environment is collected to obtain the ambient temperature data; wherein the target environment is the environment where the electronic pen is located; Acquiring a water outlet determination difference that matches the ambient temperature data; Performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine a water discharge reference parameter; Based on the water outflow reference parameter and the water outflow determination difference, a target water outflow threshold value of the electronic pen is calibrated.

2. The method according to claim 1, characterized in that The performing of environmental adaptation processing on the electronic pen based on the environmental temperature data and determining the water discharge reference parameter comprises: Obtaining a no-load pressure value of the electronic pen tip at every preset basic sampling time; wherein the no-load pressure value represents a pressure value obtained by the electronic pen tip when no pressure is applied to the electronic pen tip; An average value is processed based on a preset first number of no-load pressure values ​​to obtain a basic calibration value.

3. The method according to claim 2, characterized in that The performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter comprises: Adjust the basic sampling time based on the ambient temperature data to obtain a target sampling time; Acquire the no-load pressure value of the electronic pen tip at every target sampling time; The water outlet reference parameter is obtained by performing average processing based on the first number of no-load pressure values.

4. The method according to claim 2, characterized in that: The performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter further comprises: Obtaining a temperature change difference according to the ambient temperature data within a preset temperature sampling time; Adjust the first number based on the temperature change difference to obtain a target number; The water outlet reference parameter is obtained by performing average processing on the no-load pressure values ​​of the target number.

5. The method according to claim 2, characterized in that: The performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter further comprises: Based on the ambient temperature data, determining a target temperature interval from a plurality of preset candidate temperature intervals, wherein each of the candidate temperature intervals is configured with a corresponding calibration correction value; The basic calibration value is corrected according to the calibration correction value to obtain the water outlet reference parameter.

6. The method according to claim 5, characterized in that Before determining the target temperature region from a plurality of preset candidate temperature intervals based on the ambient temperature data, the method further includes presetting a plurality of the candidate temperature intervals, including: Setting different temperature intervals to obtain a plurality of candidate temperature intervals; Adjusting the ambient temperature to each of the candidate temperature intervals, and acquiring the no-load pressure value according to the basic sampling time; Performing average processing based on the first number of no-load pressure values ​​to obtain a basic calibration value corresponding to each of the candidate temperature intervals; A deviation value is set for the basic calibration value corresponding to each of the candidate temperature intervals to obtain the calibration correction value configured for each of the candidate temperature intervals.

7. The method according to claim 2, characterized in that The performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter further comprises: Setting a calibration change threshold based on a temperature change trend represented by the ambient temperature data; When the ambient temperature data indicates that the ambient temperature drops, the basic calibration value is subjected to a change limiting process according to the calibration change threshold value to obtain the water outlet reference parameter.

8. An electronic pen calibration device, characterized in that: The device comprises: An instruction forming module, for forming a self-calibration instruction in response to the electronic pen being configured in a self-calibration state; A temperature acquisition module, used to acquire the temperature of a target environment according to the self-calibration instruction to obtain environmental temperature data; wherein the target environment is the environment where the electronic pen is located; A difference data acquisition module, used to acquire a water outlet determination difference matching the ambient temperature data; A reference parameter acquisition module, used for performing environmental adaptation processing on the electronic pen based on the environmental temperature data to determine the water output reference parameter; The calibration processing module is used to calibrate the target water outflow threshold value of the electronic pen based on the water outflow reference parameter and the water outflow determination difference.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the electronic pen calibration method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electronic pen calibration method according to any one of claims 1 to 7 is implemented.