Pen tip wear degree detection method, electronic equipment and storage medium

By obtaining and evaluating the characteristic information and pressure data of the stylus tip, the wear degree of the pen tip can be accurately detected, which solves the problem of pen tip wear affecting writing quality and improves user experience and device reliability.

CN118604474APending Publication Date: 2024-09-06SHENZHEN XINWEI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410579403.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, the friction between the pen tip and the device screen during the writing process of a touch smart pen causes wear, which affects the writing quality and may damage the device screen. There is a lack of effective wear and tear detection methods.

Method used

By obtaining the pen tip characteristic information, determining the life stroke data, detecting the current pressure value and pressure threshold in real time, and conducting wear assessment based on the writing stroke data and life stroke data, accurate detection and feedback of the pen tip wear degree can be achieved.

Benefits of technology

It provides a reliable method to detect the wear degree of the stylus pen tip, improves the stability and accuracy of the writing process, and promptly reminds the user to replace the pen tip, extending the service life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604474A
    Figure CN118604474A
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of touch pens, and provides a pen point wear degree detection method, electronic equipment and a storage medium, the method provided by the embodiment of the invention comprises the following steps: acquiring pen point feature information of an electronic touch pen, determining service life stroke data of a target pen point according to the pen point feature information, and determining the service life stroke data of the target pen point according to the service life stroke data. Detecting a current pressure value corresponding to the target pen point in real time, acquiring a pressure threshold value corresponding to the target pen point when a target object uses the electronic touch pen based on the current pressure value, performing stroke recording based on the current pressure value and the pressure threshold value, determining writing stroke data corresponding to the target pen point, and outputting the writing stroke data corresponding to the target pen point. Wear degree evaluation is conducted on the basis of the writing stroke data and the service life stroke data, nib wear degree data corresponding to the target nib are obtained, the wear degree data of the nib of the electronic touch pen can be accurately analyzed, and the nib wear degree is fed back to a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of stylus technology, and in particular to a method for detecting the degree of wear of a pen tip, an electronic device, and a storage medium. Background Art

[0002] In the related art, a stylus smart pen can be used to write on a device screen. However, friction is generated between the pen tip and the device screen during the writing process, which causes wear on the pen tip. Excessive wear and tear will affect the writing of the stylus pen and even damage the device screen. Therefore, how to detect the degree of wear on the stylus pen tip has become an urgent problem to be solved. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method for detecting the wear degree of a stylus tip, an electronic device and a storage medium, which can reliably detect the wear degree of a stylus tip.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a method for detecting the degree of wear of a pen tip, comprising:

[0005] Acquire pen tip characteristic information of the electronic stylus; wherein the pen tip characteristic information is used to describe the wear characteristics of the target pen tip on the electronic stylus;

[0006] Determining life span data of the target pen tip according to the pen tip characteristic information;

[0007] detecting a current pressure value corresponding to the target pen tip in real time, and acquiring a pressure threshold corresponding to the target pen tip when the target object uses the electronic stylus based on the current pressure value;

[0008] Perform stroke recording based on the current pressure value and the pressure threshold, and determine writing stroke data corresponding to the target pen tip;

[0009] The wear degree is evaluated based on the writing stroke data and the life stroke data to obtain the nib wear degree data corresponding to the target nib.

[0010] The pen tip wear degree detection method proposed in the embodiment of the present application has at least the following beneficial effects: first, by acquiring the pen tip characteristic information and determining the life stroke data of the target pen tip, then monitoring the pressure value corresponding to the target pen tip and dynamically acquiring the pressure threshold in real time, then performing stroke recording based on the current pressure value and the pressure threshold, performing wear assessment based on the writing stroke data and the life stroke data, thereby achieving accurate analysis to obtain the wear degree data of the electronic stylus pen tip, so as to provide reliable pen tip wear degree feedback to the user.

[0011] In some embodiments, the electronic stylus stores an initial pressure threshold, and the real-time detection of the current pressure value corresponding to the target pen tip, and the acquisition of the pressure threshold corresponding to the target pen tip when the target object uses the electronic stylus based on the current pressure value, include:

[0012] Determining a real-time working state of the electronic stylus based on the current pressure value;

[0013] When the real-time working state is in a non-writing state, determining a real-time load reading of the electronic stylus in the non-writing state;

[0014] The pressure threshold is calculated based on the initial pressure threshold, the real-time load reading in a non-writing state and a preset calibration function to update the pressure threshold.

[0015] In some embodiments, determining the real-time working state of the electronic stylus based on the current pressure value includes:

[0016] Acquire current writing inclination angle data and current writing speed data of the electronic stylus that match the current pressure value;

[0017] If the current pressure value, the current writing inclination angle data and the current writing speed data meet the preset writing confirmation conditions, the real-time working state is determined to be a valid writing state.

[0018] In some embodiments, if the current pressure value, the current writing inclination angle data, and the current writing speed data satisfy a preset writing confirmation condition, determining that the real-time working state is a valid writing state includes:

[0019] When the current pressure value is greater than the pressure threshold and the current writing speed data is greater than zero, it is determined that the writing confirmation condition is met; or, when the current pressure value is greater than the pressure threshold and the angle change rate in the current writing inclination angle data is greater than zero, it is determined that the writing confirmation condition is met; or, when the current pressure value is greater than the pressure threshold, the current writing speed data is greater than zero and the angle change rate in the current writing inclination angle data is greater than zero, it is determined that the writing confirmation condition is met.

[0020] In some embodiments, the electronic stylus pen is provided with a transmitting electrode, and the transmitting electrode is used to transmit an action signal perpendicular to the writing surface, and the obtaining of current writing inclination angle data and current writing speed data of the electronic stylus pen matching the current pressure value includes:

[0021] Acquire the current writing speed data;

[0022] Obtaining the coordinates of the signal landing point of the action signal on the writing surface, and obtaining the coordinates of the pen tip landing point of the electronic touch pen;

[0023] Perform coordinate calculation according to the signal landing point coordinates and the pen tip landing point coordinates to obtain landing point spacing data;

[0024] The tilt angle data is calculated based on the landing point spacing data and the preset electrode length data of the transmitting electrode to obtain the writing tilt angle data.

[0025] In some embodiments, the non-writing state includes an idle state, and when the real-time working state is in the non-writing state, determining the real-time load reading of the electronic stylus in the non-writing state includes:

[0026] When the current pressure value is equal to zero, confirming that the real-time working state is in the no-load state;

[0027] A real-time load reading of the electronic stylus in the no-load state is obtained.

[0028] In some embodiments, the calibration function includes preset full-load pressure data and a full-load reading corresponding to the preset full-load pressure data, and the pressure threshold calculation based on the initial pressure threshold, the real-time load reading in the non-writing state and the preset calibration function to update the pressure threshold includes:

[0029] determining candidate load data based on the full load reading, the preset full load pressure data, the real-time load reading, and the initial pressure threshold;

[0030] Performing integrated calculation based on the candidate load data and the real-time load reading to obtain target load data;

[0031] The target load data is substituted into the calibration function for calculation to update the pressure threshold.

[0032] In some embodiments, after performing the wear degree evaluation based on the writing stroke data and the life stroke data to obtain the nib wear degree data corresponding to the target nib, the method includes:

[0033] Obtaining a wear degree threshold; wherein the wear degree threshold is used to describe the wear critical point of the target pen tip;

[0034] If the pen tip wear degree data is greater than the wear degree threshold, a pen tip replacement reminder operation is performed.

[0035] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for detecting the degree of pen tip wear described in the technical solution of the first aspect is implemented.

[0036] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the pen tip wear degree detection method described in the technical solution of the first aspect.

[0037] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0039] Figure 1 is an optional flow chart of the pen tip wear degree detection method provided in the embodiment of the present application;

[0040] Figure 2 yes Figure 1 Specific flow chart of step S300;

[0041] Figure 3 yes Figure 2 Specific flow chart of step S310;

[0042] Figure 4 yes Figure 3 Specific flow chart of step S311;

[0043] Figure 5 yes Figure 2 Specific flow chart of step S320;

[0044] Figure 6 yes Figure 2 Specific flow chart of step S330;

[0045] Figure 7 yes Figure 1 An optional flowchart after step S500;

[0046] Figure 8 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0047] 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.

[0048] 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.

[0049] 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.

[0050] In the related art, a stylus smart pen is used to write on an electronic device with a display screen. During the writing process, friction is generated between the pen tip of the stylus smart pen and the device screen, causing wear on the pen tip. Excessive accumulation of such wear will affect the writing of the stylus pen and even damage the device screen. Therefore, it is necessary to estimate the degree of wear on the pen tip through relevant parameters during the writing process and provide it to the user for reference.

[0051] Based on this, the embodiments of the present application provide a method and device for detecting the degree of wear of a pen tip, an electronic device, and a storage medium, which are intended to detect the degree of wear of the pen tip of an electronic stylus.

[0052] The pen tip wear degree detection method and device, electronic device and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the pen tip wear degree detection method in the embodiments of the present application is described.

[0053] Figure 1 is an optional flow chart of the pen tip wear degree detection method provided in the embodiment of the present application, Figure 1 The method may include but is not limited to steps S100 to S500.

[0054] Step S100, obtaining pen tip characteristic information of the electronic stylus pen.

[0055] Step S200, determining the life travel data of the target pen tip according to the pen tip characteristic information.

[0056] Step S300 , detecting the current pressure value corresponding to the target pen tip in real time, and obtaining the pressure threshold corresponding to the target pen tip when the target object uses the electronic stylus based on the current pressure value.

[0057] Step S400, recording the stroke based on the current pressure value and the pressure threshold, and determining the writing stroke data corresponding to the target pen tip.

[0058] Step S500, evaluating the degree of wear based on the writing stroke data and the life stroke data, and obtaining the nib wear degree data corresponding to the target nib.

[0059] Steps S100 to S500 shown in the embodiment of the present application first obtain pen tip feature information and determine the life stroke data of the target pen tip, then monitor the pressure value corresponding to the target pen tip in real time and dynamically obtain the pressure threshold, so as to improve the stability and accuracy of the electronic stylus writing process, and then record the writing stroke data, perform wear assessment based on the writing stroke data and the life stroke data, and finally achieve accurate analysis of the pen tip wear degree data, so as to provide the user with reliable pen tip wear degree information.

[0060] In step S100 of some embodiments, the pen tip feature information of the electronic stylus is obtained, wherein the pen tip feature information is used to describe the wear characteristics of the target pen tip on the electronic stylus. It should be noted that the target pen tip is the pen tip of the electronic stylus currently in use, and the wear characteristics are characteristics that can affect the friction between the target pen tip and other objects. The pen tip feature information may include the pen tip material, pen tip texture, friction coefficient and writing surface smoothness, etc. It can be understood that the pen tip material may be polyoxymethylene (POM), polyamide (PA) and silicone, etc., the pen tip texture may be wavy pattern, water ripple and no texture, etc., the writing surface may be the outer screen of the electronic device, and the smoothness of the writing surface may be the granularity of the outer screen. The higher the granularity, the rougher the outer screen, and conversely, the lower the granularity, the smoother the outer screen.

[0061] It is understandable that the pen tip feature information can be determined and stored in the memory of the electronic stylus when the electronic stylus is first shipped from the factory, or the user can input it through an interactive interface. For example, in some embodiments, an electronic device with a screen is installed with a specific application, and the application can be used to set the pen tip feature information of an electronic stylus from the same manufacturer as the electronic device.

[0062] In step S200 of some embodiments, the life travel data of the target pen tip is determined based on the pen tip characteristic information. It should be noted that the maximum stroke that the target pen tip can write on the writing surface matching the target pen tip is the life travel data, wherein the correspondence between the life travel data and the pen tip characteristic information is also determined at the beginning of delivery. The life travel data corresponding to the pen tip characteristic information can be stored in the memory of the electronic stylus when the electronic stylus is produced, and can also be queried through a database. Exemplarily, the correspondence between the life travel data and the pen tip characteristic information is stored in a database. If the pen tip material of the electronic stylus currently in use is polyamide and the pen tip texture is no texture, the corresponding life travel data is 10,000 meters. At this time, the life travel data with a value of 10,000 meters has been stored in the memory of the electronic stylus at the beginning of the production of the electronic stylus. If the user purchases a replacement pen tip from the same manufacturer as the current electronic stylus, the pen tip material of the replacement pen tip is silicone and the pen tip texture is water ripple, and the replacement pen tip replaces the original pen tip. At this time, the replacement pen tip that has been replaced is the target pen tip. The user selects the pen tip material as "silicone" and the pen tip texture as "water ripple" in the application. By querying the above database, it can be obtained that the life travel data corresponding to the current pen tip characteristic information is 12,000 meters. The original 10,000 meters are replaced with 12,000 meters, thereby realizing the update of the life travel data.

[0063] In step S300 of some embodiments, the current pressure value corresponding to the target pen tip is detected in real time, and the pressure threshold corresponding to the target pen tip when the target object uses the electronic stylus is obtained based on the current pressure value, wherein the current pressure value is the pressure value exerted on the target pen tip at the current moment, and the current pressure value can be obtained by the pressure sensor.

[0064] See also Figure 2 In some embodiments, step S300 may include but is not limited to steps S310 to S330:

[0065] Step S310: determining the real-time working state of the electronic stylus based on the current pressure value.

[0066] Step S320: When the real-time working state is in the non-writing state, determine the real-time load reading of the electronic stylus in the non-writing state.

[0067] Step S330 , calculating the pressure threshold based on the initial pressure threshold, the real-time load reading in the non-writing state and a preset calibration function to update the pressure threshold.

[0068] Steps S310 to S330 shown in the embodiment of the present application take into account that the internal structure and components of the pen tip of the electronic stylus pen will wear or age over time, and achieve dynamic monitoring of the real-time working status and load conditions of the electronic stylus pen, as well as real-time adjustment of the pressure threshold, to ensure accurate judgment of the device in an effective writing state, thereby improving the user's writing experience and the reliability of the device.

[0069] In step S310 of some embodiments, the real-time working status of the electronic stylus pen includes an effective writing status and a non-writing status. It can be understood that when the electronic stylus pen is in an effective writing status, it means that it is performing operations on the writing surface, that is, the pen tip is in contact with the writing surface and produces handwriting, and the non-writing status means that the electronic stylus pen does not produce handwriting on the writing surface.

[0070] See also Figure 3 In some embodiments, step S310 may include but is not limited to steps S311 to S312:

[0071] Step S311, obtaining current writing tilt angle data and current writing speed data of the electronic stylus that match the current pressure value.

[0072] Step S312: If the current pressure value, the current writing tilt angle data and the current writing speed data meet the preset writing confirmation conditions, the real-time working state is determined to be a valid writing state.

[0073] In step S311 of some embodiments, current writing inclination angle data and current writing speed data of the electronic stylus that match the current pressure value are obtained. It should be noted that the current writing speed data may include the current moving speed, acceleration and speed direction of the electronic stylus, and the current writing inclination angle data may include the inclination angle and the rate of change of the inclination angle, wherein the inclination angle may be the angle between the electronic stylus and the writing surface, and the rate of change of the inclination angle is a measure of the dynamic change of the inclination angle per unit time, which can describe the dynamic change of the inclination angle.

[0074] See also Figure 4 In some embodiments, step S311 may include but is not limited to steps S410 to S440:

[0075] Step S410, obtaining current writing speed data.

[0076] Step S420, obtaining the coordinates of the signal landing point of the action signal on the writing surface, and obtaining the coordinates of the pen tip landing point of the electronic stylus.

[0077] Step S430, performing coordinate calculation according to the signal landing point coordinates and the pen tip landing point coordinates to obtain landing point spacing data.

[0078] Step S440, calculating the inclination angle of the landing point spacing data and the preset electrode length data of the transmitting electrode to obtain writing inclination angle data.

[0079] In step S410 of some embodiments, the current writing speed data can be detected and acquired by a speed sensor, or calculated by an internal main control chip of the electronic stylus. Specifically, the electronic stylus is internally integrated with a main control chip and a displacement sensor, and a timer is provided inside the main control chip. When the displacement sensor detects that the electronic stylus has generated displacement, the timer starts timing, and the displacement sensor records the moving distance of the stylus, and then divides the moving distance by the time corresponding to the displacement to obtain the average writing speed within the time, and the average writing speed is used as the current writing speed data.

[0080] In step S420 of some embodiments, it should be noted that the electronic stylus is provided with a transmitting electrode, and the signal emitted by the transmitting electrode can detect the coordinates of the point where the pen tip falls on the writing surface, which are the pen tip falling point coordinates. Among the signals emitted by the transmitting electrode, the signal that falls vertically on the writing surface is called the action signal, and the vertical interaction point of the action signal on the writing surface is the signal landing point, and the coordinates of the vertical interaction point are the signal landing point coordinates. In some embodiments, the writing surface corresponding to the electronic stylus is the device screen, then the signal landing point coordinates and the pen tip landing point coordinates are both coordinates on the screen coordinate system, where the origin of the screen coordinate system is the upper left corner of the screen.

[0081] In step S430 of some embodiments, coordinate calculation is performed based on the signal landing point coordinates and the pen tip landing point coordinates to obtain the landing point spacing data. For example, the signal landing point coordinates are represented by (x1, y1), and the pen tip landing point coordinates are represented by (x2, y2). Then, the landing point spacing data can be calculated by formula (1), which is specifically as follows:

[0082]

[0083] Wherein, D is the landing point spacing data. It can be understood that when the landing point spacing data is zero, it means that the signal landing point coordinates coincide with the pen tip landing point coordinates, and at this time the pen tip is perpendicular to the writing surface, and the inclination angle is 90°.

[0084] In step S440 of some embodiments, the tilt angle is calculated for the landing point spacing data and the preset electrode length data of the transmitting electrode to obtain the writing tilt angle data. The writing tilt angle data at this time is the tilt angle of the current electronic stylus, and the length from the transmitting position of the transmitting electrode transmitting the action signal to the tip of the electronic stylus is the length of the transmitting electrode itself, that is, the preset electrode length data of the transmitting electrode. The tilt angle calculation can be obtained by calculating the tilt angle through inverse trigonometric functions. Specifically, the tilt angle can be calculated according to formula (2), and formula (2) is specifically as follows:

[0085]

[0086] Steps S410 to S440 shown in the embodiment of the present application realize the acquisition of real-time writing speed data. Secondly, the coordinates of the landing point of the pen tip on the writing surface are detected by the signal emitted by the transmitting electrode, and then the accurate positioning of the handwriting position is realized in combination with the coordinates of the landing point of the pen tip, which provides a reliable data basis for the real-time working status judgment and processing of the electronic stylus.

[0087] In step S312 of some embodiments, if the current pressure value, the current writing inclination angle data and the current writing speed data meet the preset writing confirmation conditions, the real-time working state is determined to be a valid writing state.

[0088] In some embodiments, the writing confirmation condition may be: the current pressure value is greater than the pressure threshold and the current writing speed data is greater than zero, or the current pressure value is greater than the pressure threshold and the angle change rate in the current writing tilt angle data is greater than zero, or the current pressure value is greater than the pressure threshold, the current writing speed data is greater than zero and the angle change rate in the current writing tilt angle data is greater than zero. It should be noted that in this embodiment, the current writing speed data is calculated by dividing the movement amount of the electronic stylus by the time corresponding to the movement amount, wherein the movement amount is a scalar, and the electronic stylus moves five centimeters to the left and five centimeters to the right, and the movement amount obtained is five centimeters. Therefore, as long as the current electronic stylus has a moving speed, the current writing speed data must be greater than zero. Similarly, the angle change rate is calculated by dividing the change amount of the angle by the time corresponding to the change amount, wherein the change amount of the angle is also a scalar. If the tilt angle changes from 20° to 70°, its change amount is 50°, even if the tilt angle changes from 70° to 20°, its change amount is also 50°. Therefore, as long as the tilt angle of the current electronic stylus changes, the angle change rate must be greater than zero.

[0089] It is understandable that during normal writing, the electronic stylus will have a certain displacement or change in inclination angle. When it is detected that the electronic stylus has a speed, the electronic stylus will have a displacement. When the electronic stylus is writing on the writing surface, a certain pressure will be applied to the pen tip. When the current pressure value is detected to exceed the preset pressure threshold, it can be judged that the user has the intention to write, but the user can point the tip of the electronic stylus on the writing surface without writing. Therefore, it is not reliable to judge whether the electronic stylus is writing only based on the pressure value. If you want to accurately judge whether the electronic stylus is writing, you need to make further judgments based on the speed data and the inclination angle data. Exemplarily, when the user draws a line on the writing surface with the electronic stylus at a fixed inclination angle, if the current pressure value is greater than the pressure threshold and the current writing speed data is greater than zero, it is determined that the writing condition is met. When the user writes text on the writing surface, if the current pressure value is greater than the pressure threshold, the current writing speed data is greater than zero, and the angle change rate in the current writing inclination angle data is greater than zero, it is determined that the writing condition is met. If it is determined that the writing condition is not satisfied, it can be determined that the working state of the electronic touch pen is in a non-writing state.

[0090] In the steps S311 to S312 shown in the embodiment of the present application, by comprehensively considering the current pressure value, writing tilt angle data and writing speed data, this solution can not only effectively detect whether the user is writing, but also eliminate some misjudgments, such as misjudgments that may be caused by ignoring speed and tilt angle changes based only on the pressure value. Through comprehensive analysis of multi-dimensional data, the solution improves the system's sensitivity and accuracy to writing behavior, thereby more reliably determining the real-time working status of the electronic stylus, and providing users with a more intelligent and smooth writing experience.

[0091] In step S320 of some embodiments, when the real-time working state is in a non-writing state, the real-time load reading of the electronic stylus in the non-writing state is determined, wherein the real-time load reading may be an ADC value, i.e., a digital representation of an analog signal converted by an analog-to-digital converter (ADC) inside the electronic stylus. In this embodiment, the analog signal detected by the analog-to-digital converter is related to the current pressure value.

[0092] See also Figure 5 In some embodiments, step S320 may also include but is not limited to steps S510 to S520:

[0093] Step S510, when the current pressure value is equal to zero, confirm that the real-time working state is in a no-load state.

[0094] Step S520, obtaining a real-time load reading of the electronic stylus in a no-load state.

[0095] In step S510 of some embodiments, it can be understood that the no-load state is a special state of the non-writing state, indicating that no force is currently applied to the tip of the electronic stylus pen.

[0096] In step S520 of some embodiments, when the current pressure value is 0 grams, the corresponding real-time load reading is a variable and needs to be obtained in real time.

[0097] Steps S510 to S520 shown in the embodiment of the present application refine the real-time working status of the electronic stylus, effectively improve the comprehensive monitoring and data acquisition of the electronic stylus status, and provide necessary data for subsequent updating of the pressure threshold.

[0098] In step S330 of some embodiments, the pressure threshold is calculated based on the initial pressure threshold, the real-time load reading in the non-writing state and a preset calibration function to update the pressure threshold. It should be noted that the electronic stylus stores the initial pressure threshold.

[0099] During the production process, calibration is usually performed to determine the ADC value under different load conditions. For example, a calibration table can be generated based on the ADC values ​​corresponding to the no-load state (0g), light load state (5g) and full load state (400g), and a curve function can be generated based on these data. This curve function is the calibration function, which mathematically models the relationship between the load and the ADC value, so that in actual use, the current load condition can be estimated based on the measured ADC value. In other words, the calibration function is used to describe the relationship between the load weight and the ADC value. The calibration function can be a linear function, a polynomial function, an exponential function, etc., depending on the change law between the load and the ADC value. Therefore, the calibration function will include preset full-load pressure data and a full-load reading corresponding to the preset full-load pressure data. Specifically, the preset full-load pressure data is the maximum pressure weight that the pressure sensor of the pen tip can withstand, and the full-load reading is the corresponding ADC value when the pressure weight of the pen tip is the preset full-load pressure data.

[0100] See also Figure 6 In some embodiments, step S330 includes but is not limited to steps S610 to S630:

[0101] Step S610 , determining candidate load data based on the full load reading, the preset full load pressure data, the real-time load reading, and the initial pressure threshold.

[0102] Step S620, performing integration calculation based on the candidate load data and the real-time load reading to obtain target load data.

[0103] Step S630: Substitute the target load data into the calibration function for calculation to update the pressure threshold.

[0104] In step S610 of some embodiments, the candidate load data may be calculated according to formula (3), and the specific form of formula (3) is as follows:

[0105]

[0106] Among them, A G is the candidate load data, A max A0 is the real-time load reading under no-load condition. max is the preset full load pressure data, k0 is the initial pressure threshold. For example, the preset full load pressure data may be 400 grams, and the corresponding full load reading is 4095. At this time, the real-time load reading in the no-load state is 410. It is known that the initial pressure threshold is 5 grams, and the candidate load data is 46.0625.

[0107] In step S620 of some embodiments, the integrated calculation may be a summation, where the candidate load data and the real-time load reading are added together to obtain the target load data. For example, in step S610, the candidate load data with a value of 46.0625 is added to the real-time load reading with a value of 410 to obtain the target load data of 456.0625.

[0108] In step S630 of some embodiments, the load weight corresponding to the data 456.0625 is obtained according to the functional relationship of the calibration function, and the corresponding load weight replaces the original pressure threshold of 5 grams, thereby completing the update of the pressure threshold.

[0109] It is understandable that the tip of the electronic stylus pen is a consumable. After being used for a period of time, the internal structure and components may wear out or age, causing changes in parameters such as resistance and pressure sensor in the no-load state, which in turn affects the measurement results of the ADC value. If the pressure threshold is not updated in time, the accuracy of judging whether the writing is valid may decrease, and even the situation where handwriting cannot be left on the writing surface may occur, affecting the user's writing experience and the stability of the electronic stylus.

[0110] In steps S610 to S630 shown in the embodiment of the present application, the pressure threshold is reasonably calculated and updated by tracking the ADC value of the electronic stylus in a no-load state, thereby ensuring the stability and accuracy of the electronic stylus.

[0111] In step S400 of some embodiments, the stroke is recorded based on the current pressure value and the pressure threshold, and the writing stroke data corresponding to the target pen tip is determined. Specifically, when the current pressure value is greater than the pressure threshold, it can be further determined whether the electronic stylus is performing effective writing. It can be referred to whether the writing conditions are met. The confirmation of the writing conditions has been described in detail in the above-mentioned related descriptions and will not be repeated here. After confirming that the electronic stylus is performing effective writing, the displacement corresponding to the target pen tip being in an effective writing state is recorded, and the displacement is the writing stroke data. It can be understood that the writing stroke data is the sum of multiple displacements obtained by the user using the electronic stylus for effective writing multiple times. For example, the user effectively wrote 5 meters during the first use and 10 meters during the second use. At the end of the second use, the writing stroke data is 15 meters.

[0112] In step S500 of some embodiments, the wear degree is evaluated based on the writing stroke data and the life stroke data to obtain the nib wear degree data corresponding to the target nib, wherein the wear degree evaluation may be a ratio calculation, and the nib wear degree data may be the ratio of the writing stroke data to the life stroke data, and the ratio may be presented in the form of a percentage. For example, if the writing stroke data is known to be 15 meters and the life stroke data is known to be 10,000 meters, and the ratio of the writing stroke data to the life stroke data is calculated to be 0.0015, then the nib wear degree data finally obtained is 0.15%.

[0113] See also Figure 7 In some embodiments, after step S500, the pen tip wear degree detection method may also include but is not limited to steps S710 to S720:

[0114] Step S710, obtaining a wear degree threshold.

[0115] Step S720: If the pen tip wear degree data is greater than the wear degree threshold, a pen tip replacement reminder operation is executed.

[0116] In step S710 of some embodiments, the wear degree threshold is used to describe the critical point of wear of the target pen tip. When the wear degree of the target pen tip reaches or exceeds the threshold, it indicates that the pen tip has reached the level that requires replacement or maintenance. The wear degree threshold may be 85%. The specific value of the wear degree threshold may be set according to actual needs, and this embodiment does not limit this.

[0117] In step S720 of some embodiments, the pen tip replacement reminder operation can be to light up the LED light of the electronic stylus, or the electronic device can display relevant reminder information on the display screen to remind the user to replace the pen tip in time. Specifically, the electronic stylus sends a signal to the device being written through its internal Bluetooth module, and the electronic device responds after receiving the signal, and displays the words "Please replace or maintain the pen tip in time" on the interactive interface of the electronic device. The relevant reminder information can also be the length of time the user has continuously used the electronic stylus. The specific content of the relevant reminder information can be set according to actual needs, and this embodiment does not limit this.

[0118] Steps S710 to S720 shown in the embodiment of the present application can help the user to promptly identify the wear of the pen tip so as to take corresponding maintenance measures to ensure the writing quality and effect of the electronic stylus.

[0119] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements any step of the above-mentioned pen tip wear degree detection method when executing the computer program.

[0120] The computer program is stored in the memory, and the processor executes at least one computer program to implement the pen tip wear degree detection method implemented in the present disclosure. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

[0121] Combine the following Figure 8 The electronic device according to the embodiment of the present application is introduced in detail.

[0122] Please refer to Figure 8 , Figure 8 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0123] The processor 810 may be implemented by a general-purpose central processing unit (CCU), 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 disclosure;

[0124] The memory 820 can 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 820 can 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 820, and the processor 810 calls and executes the pen tip wear degree detection method of the embodiment of the present disclosure;

[0125] Input / output interface 830, used to implement information input and output;

[0126] The communication interface 840 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, WIFI, Bluetooth, etc.);

[0127] bus 850 , which transmits information between the various components of the device (e.g., processor 810 , memory 820 , input / output interface 830 , and communication interface 840 );

[0128] The processor 810 , the memory 820 , the input / output interface 830 and the communication interface 840 are connected to each other in communication within the device via a bus 850 .

[0129] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the steps of any one of the above-mentioned pen tip wear degree detection methods are implemented.

[0130] 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.

[0131] 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.

[0132] 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.

[0133] 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.

[0134] 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.

[0135] 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.

[0136] 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.

[0137] 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 units is only a logical function division, and 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. In addition, 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.

[0138] The units described 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.

[0139] 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.

[0140] 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 an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs.

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

Claims

1. A method for detecting the degree of pen tip wear, characterized in that: The method comprises: Acquire pen tip characteristic information of the electronic stylus; wherein the pen tip characteristic information is used to describe the wear characteristics of the target pen tip on the electronic stylus; Determining life span data of the target pen tip according to the pen tip characteristic information; detecting a current pressure value corresponding to the target pen tip in real time, and acquiring a pressure threshold corresponding to the target pen tip when the target object uses the electronic stylus based on the current pressure value; Perform stroke recording based on the current pressure value and the pressure threshold, and determine writing stroke data corresponding to the target pen tip; The wear degree is evaluated based on the writing stroke data and the life stroke data to obtain the nib wear degree data corresponding to the target nib.

2. The pen tip wear degree detection method according to claim 1, characterized in that: The electronic stylus stores an initial pressure threshold, and the real-time detection of a current pressure value corresponding to the target pen tip, and obtaining the pressure threshold corresponding to the target pen tip when the target object uses the electronic stylus based on the current pressure value, includes: Determining a real-time working state of the electronic stylus based on the current pressure value; When the real-time working state is in a non-writing state, determining a real-time load reading of the electronic stylus in the non-writing state; The pressure threshold is calculated based on the initial pressure threshold, the real-time load reading in a non-writing state and a preset calibration function to update the pressure threshold.

3. The pen tip wear degree detection method according to claim 2, characterized in that: The determining the real-time working state of the electronic stylus based on the current pressure value includes: Acquire current writing inclination angle data and current writing speed data of the electronic stylus that match the current pressure value; If the current pressure value, the current writing inclination angle data and the current writing speed data meet the preset writing confirmation conditions, the real-time working state is determined to be a valid writing state.

4. The method for detecting the degree of pen tip wear according to claim 3, characterized in that: If the current pressure value, the current writing inclination angle data and the current writing speed data meet the preset writing confirmation condition, determining that the real-time working state is a valid writing state includes: When the current pressure value is greater than the pressure threshold and the current writing speed data is greater than zero, determining that the confirmation writing condition is met; or, When the current pressure value is greater than the pressure threshold and the angle change rate in the current writing inclination angle data is greater than zero, determining that the writing confirmation condition is met; or, When the current pressure value is greater than the pressure threshold, the current writing speed data is greater than zero, and the angle change rate in the current writing inclination angle data is greater than zero, it is determined that the confirmation writing condition is met.

5. The method for detecting the degree of pen tip wear according to claim 3, characterized in that: The electronic stylus pen is provided with a transmitting electrode, and the transmitting electrode is used to transmit an action signal perpendicular to the writing surface. The obtaining of current writing inclination angle data and current writing speed data of the electronic stylus pen matching the current pressure value includes: Acquire the current writing speed data; Obtaining the coordinates of the signal landing point of the action signal on the writing surface, and obtaining the coordinates of the pen tip landing point of the electronic touch pen; Perform coordinate calculation according to the signal landing point coordinates and the pen tip landing point coordinates to obtain landing point spacing data; The tilt angle data is calculated based on the landing point spacing data and the preset electrode length data of the transmitting electrode to obtain the writing tilt angle data.

6. The pen tip wear degree detection method according to claim 2, characterized in that: The non-writing state includes an idle state, and when the real-time working state is in the non-writing state, determining the real-time load reading of the electronic stylus in the non-writing state includes: When the current pressure value is equal to zero, confirming that the real-time working state is in the no-load state; A real-time load reading of the electronic stylus in the no-load state is obtained.

7. The method for detecting the degree of pen tip wear according to claim 2, characterized in that: The calibration function includes preset full-load pressure data and a full-load reading corresponding to the preset full-load pressure data, and the pressure threshold calculation is performed based on the initial pressure threshold, the real-time load reading in a non-writing state, and the preset calibration function to update the pressure threshold, including: determining candidate load data based on the full load reading, the preset full load pressure data, the real-time load reading, and the initial pressure threshold; Performing integrated calculation based on the candidate load data and the real-time load reading to obtain target load data; The target load data is substituted into the calibration function for calculation to update the pressure threshold.

8. The method for detecting the degree of pen tip wear according to any one of claims 1 to 7, characterized in that: After performing the wear degree evaluation based on the writing stroke data and the life stroke data to obtain the pen tip wear degree data corresponding to the target pen tip, the method includes: Obtaining a wear degree threshold; wherein the wear degree threshold is used to describe the wear critical point of the target pen tip; If the pen tip wear degree data is greater than the wear degree threshold, a pen tip replacement reminder operation is performed.

9. An electronic device, characterized in that The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the pen tip wear degree detection method according to any one of claims 1 to 8 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 pen tip wear degree detection method according to any one of claims 1 to 8 is implemented.