Pressure-sensitive pen parameter correction method and device, electronic equipment and storage medium

By mapping and signal correction of the detection results of the strain gauge, the detection error problem caused by the inability to recover after the strain gauge deformation is solved, and the accurate detection and response of the pressure sensor pen is realized.

CN119223515APending Publication Date: 2024-12-31GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310798706.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The strain gauge may not be able to return to its initial form during use, resulting in technical problems in detecting errors during writing of the pressure pen.

Method used

By mapping the time-intensity coordinate system of the detection results of the strain gauge, a signal change curve is generated, and the matching state between the signal change curve and the signal correction condition is confirmed according to the intersection state of the coefficient change state of the curve and the preset reference signal reference line. The reference signal value is then corrected to achieve accurate detection.

Benefits of technology

By correcting the reference signal value, detection errors can be reduced during subsequent detection, ensuring the writing experience of the pressure sensor pen and the accuracy of the interactive response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119223515A_ABST
    Figure CN119223515A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a pressure-sensitive pen parameter correction method and device, electronic equipment and a storage medium. The method comprises the following steps: detecting a strain gauge period, and storing a detected digital signal in real time according to a preset signal storage condition; mapping the stored digital signals in a time-intensity coordinate system to generate a signal change curve; according to the coefficient change state of the signal change curve and the intersection point state of the signal change curve and a preset reference signal reference line, the matching state of the signal change curve and a preset signal correction condition is determined, and the reference signal reference line is determined according to the current reference signal value; and correcting the reference signal value when confirming that the signal change curve is matched with the signal correction condition. According to the scheme, when deviation occurs in current signal detection, the preset reference signal value can be reset and updated, and accurate detection is achieved in the subsequent detection process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of sensor technology, and in particular to a pressure-sensitive pen parameter calibration method, device, electronic device, and storage medium. Background Art

[0002] At present, pressure sensors are widely used in various fields, especially in the fields of measurement and intelligent interaction. In the field of consumer electronics, with the popularization of interactive intelligent devices, the market demand for pressure-sensitive pens using pressure sensors is increasing.

[0003] In practical applications, the calibration and algorithm adaptation of the pressure sensor used in the pressure-sensitive pen are important factors that affect the writing experience of a pressure-sensitive pen. When the pressure-sensitive pen is writing, the strain gauge of the pressure sensor will deform after being subjected to force, causing its resistance value to change, and ultimately causing the voltage at the measuring end of the strain gauge to change. At this time, the AD module is used to collect the voltage magnitude, and the voltage magnitude can be converted into the measured pressure magnitude in the form of a digital signal.

[0004] The pressure measured by the AD module corresponds to the change in resistance caused by the deformation of the strain gauge before and after the force is applied. Accordingly, the resistance value before deformation and the resistance value after deformation need to be compared to obtain the pressure value. The resistance value before deformation corresponds to the preset detection result, but the strain gauge in the pressure-sensitive pen is constantly deformed during use. This deformation process may not return to the initial shape after deformation. In this case, when the user performs pressure detection during the next writing process, the starting position of the strain gauge is the unrecovered initial shape. However, the preset detection result corresponding to the initial shape is used for comparison. This leads to detection errors when performing comparative detection. Summary of the invention

[0005] The present invention provides a pressure-sensitive pen parameter correction method, device, electronic equipment and storage medium to solve the technical problem in the prior art that when a strain gauge has an irreversible deformation, an error occurs in the detection result.

[0006] In a first aspect, an embodiment of the present invention provides a pressure-sensitive pen parameter calibration method, comprising:

[0007] Detect the strain gauge periodically and save the digital signal obtained in real time according to the preset signal saving conditions;

[0008] Map the saved digital signal in the time-intensity coordinate system to generate a signal change curve;

[0009] According to the coefficient change state of the signal change curve and the intersection state of the signal change curve and the preset reference signal reference line, confirm the matching state of the signal change curve and the preset signal correction condition, and the reference signal reference line is confirmed according to the current reference signal value;

[0010] When it is confirmed that the signal change curve matches the signal calibration condition, calibrate the reference signal value.

[0011] In a second aspect, an embodiment of the present invention further provides a pressure-sensitive pen parameter calibration device, comprising:

[0012] A detection and storage unit is used to detect the strain gauge cycle and save the digital signal obtained by the detection in real time according to the preset signal storage conditions;

[0013] A curve generating unit, used for mapping the stored digital signal in a time-intensity coordinate system to generate a signal variation curve;

[0014] A state matching unit, used to confirm the matching state of the signal change curve with a preset signal correction condition according to the coefficient change state of the signal change curve and the intersection state of the signal change curve with a preset reference signal reference line, and the reference signal reference line is confirmed according to the current reference signal value;

[0015] The calibration confirmation unit is used to calibrate the reference signal value when confirming that the signal variation curve matches the signal calibration condition.

[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, including:

[0017] one or more processors;

[0018] a memory for storing one or more computer programs;

[0019] When one or more computer programs are executed by one or more processors, the electronic device implements the pressure-sensitive pen parameter correction method of the first aspect.

[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the pressure-sensitive pen parameter correction method of the first aspect.

[0021] In the pressure-sensitive pen parameter correction method, device, electronic device and storage medium, the strain gauge cycle is detected, and the digital signal obtained by the detection is saved in real time according to the preset signal saving conditions; the saved digital signal is mapped in the time-intensity coordinate system to generate a signal change curve; according to the coefficient change state of the signal change curve and the intersection state of the signal change curve and the preset reference signal reference line, the matching state of the signal change curve and the preset signal correction condition is confirmed, and the reference signal reference line is confirmed according to the current reference signal value; when it is confirmed that the signal change curve matches the signal correction condition, the reference signal value is corrected. By performing coordinate mapping and image processing on the detection results for a period of time, and then analyzing the obtained signal change curve, when it is confirmed that the signal change curve matches the preset signal correction condition, it can be confirmed that the current signal detection has a deviation, and the preset reference signal value is reset and updated, so as to achieve accurate detection in the subsequent detection process. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A method flow chart of a pressure-sensitive pen parameter calibration method provided by an embodiment of the present invention.

[0023] Figure 2 Schematic diagram of the strain gauge in the pressure-sensitive pen in the initial state.

[0024] Figure 3 The strain gauge in the pressure-sensitive pen is Figure 2 Schematic diagram of the state written on the basis.

[0025] Figure 4 The strain gauge in the pressure-sensitive pen is Figure 3 Schematic diagram of the negative rebound state of the foundation.

[0026] Figure 5 The strain gauge in the pressure-sensitive pen is Figure 4 Schematic diagram of the state after the foundation is stabilized.

[0027] Figure 6 The strain gauge in the pressure-sensitive pen is Figure 5 Schematic diagram of the state written on the basis.

[0028] Figure 7 Schematic diagram of the state of the strain gauge in the pressure-sensitive pen writing based on positive deformation.

[0029] Figure 8 For Figure 2 Schematic diagram of the signal change curve during normal writing in the shown state.

[0030] Fig. 9 For Figure 2 Schematic diagram of the signal change curve when writing vigorously and restoring the initial state in the state shown.

[0031] Fig.10 For Figure 2 Schematic diagram of the signal change curve when negative plastic deformation occurs during writing in the shown state.

[0032] Fig.11 This is a schematic diagram of the signal change curve before and after the reference signal value of the negative deformation of the strain gauge is corrected.

[0033] Fig.12 and Fig.13 For Figure 2 Schematic diagram of two signal change curves of positive plastic deformation when writing is performed in the shown state.

[0034] Fig.14 A schematic diagram of the structure of a pressure-sensitive pen parameter correction device provided in an embodiment of the present invention.

[0035] Fig.15 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0037] It should be noted that the present application specification does not enumerate all optional implementation modes. After reading the present application specification, those skilled in the art should be able to understand that as long as the technical features do not contradict each other, any combination of the technical features can constitute an optional implementation mode.

[0038] When the pressure-sensitive pen is not subjected to external force, the strain gauge is at the pressure zero position, at which time there is an initial resistance state, which exists in a preset manner. During the writing process, the pressure-sensitive pen is deformed by external force, at which time there is a real-time resistance state and is detected by the AD module. The AD module can confirm the pressure from the pressure zero position to the current deformation based on the difference between the real-time resistance state and the initial resistance state.

[0039] The specific measurement principle of the strain gauge is that the resistance value of the metal wire is not only related to the properties of the material, but also to the length and cross-sectional area of ​​the metal wire. The metal wire is pasted on the component. When the component is deformed by force, the length and cross-sectional area of ​​the metal wire also change with the component, and then the resistance changes. The above change relationship can be expressed as dR / R=Ks*ε. Among them, Ks is the sensitivity coefficient of the material, and its physical meaning is the resistance change rate per unit strain, which indicates the significant degree of the resistance strain gauge effect of this type of wire. ε is the strain at the measuring point, which is a dimensionless quantity, but it is still customary to give a unit microstrain, and is usually represented by the symbol με. It can be seen from this that when the metal wire produces a strain effect, the strain ε is linearly related to the resistance change rate dR / R. This is the theoretical basis for using metal strain gauges to measure component strain, and strain and pressure have a clear correlation, so strain can be converted into pressure measurement results.

[0040] Under ideal conditions, the pressure zero position of the strain gauge remains unchanged, and the strain gauge can return to the pressure zero position after each writing operation after deformation. However, as a structural component, the user's usage habits and the changes in the matching state of the structural components during use may cause the position of the strain gauge when it is not subjected to external force to be different from the original pressure zero position. For example, sometimes the AD module will collect a negative AD value. At this time, the strain gauge of the pressure-sensitive pen has undergone negative deformation, that is, the strain gauge has undergone deformation in the opposite direction of the force compared to the initial pressure zero position during the writing process. However, negative deformation can be divided into two types based on the change results: one is that the writing force is too large, and the strain gauge exceeds the process of rebounding to the pressure zero position, and rebounds excessively, resulting in a short-term negative deformation. After that, the strain gauge returns to the original pressure zero position (it may be slightly offset and not absolutely coincident with the original pressure zero point), which can be regarded as elastic deformation. The other is that the strain gauge has undergone negative deformation due to the structural jam of the pressure-sensitive pen, which is plastic deformation.

[0041] In addition to negative deformation, when pressure is applied through the pen tip during writing, the strain gauge may get stuck directly when the force is maximum or during the rebound process. At this time, the strain gauge undergoes positive plastic deformation in the same direction as the force compared to the initial zero-pressure position. In this scheme, regardless of whether the strain gauge is deformed due to external force or due to its own deformation, and regardless of whether it is positive or negative, as long as the strain gauge cannot return to the initial zero-pressure position when no external force is applied, it is considered that plastic deformation that changes the shape of the strain gauge has occurred.

[0042] In specific testing, from the perspective of the change process, pressure testing should detect the deformation from no external force to the external force. From the perspective of data processing, pressure testing should confirm the actual pressure value based on the resistance value corresponding to the strain gauge at the zero pressure position and the resistance value corresponding to the force. When the strain gauge undergoes plastic deformation, the resistance value corresponding to the original preset zero pressure position is different from the actual resistance value when there is no external force, resulting in inaccurate test results and interactive response deviation when inputting pressure-based content.

[0043] In response to the above technical problems, this solution proposes a pressure-sensitive pen parameter correction method, which performs coordinate mapping and image processing on the detection results over a period of time, and then analyzes the obtained signal change curve. When it is confirmed that the signal change curve matches the preset signal correction conditions, that is, when the current signal change state matches the signal change state of the strain gauge in the pressure-sensitive pen undergoing plastic deformation, it can be confirmed that the current signal detection has a deviation, and the preset reference signal value is reset and updated, so as to achieve accurate detection and accurate response in the subsequent detection process.

[0044] The following describes in detail the embodiments of the present invention.

[0045] Figure 1 This is a method flow chart of a pressure-sensitive pen parameter calibration method provided by an embodiment of the present invention. The pressure-sensitive pen parameter calibration method is implemented by an electronic device, which can be a pressure-sensitive pen or an interactive device used in conjunction with the pressure-sensitive pen. Figure 1 The pressure-sensitive pen parameter calibration method includes steps S110 to S140:

[0046] Step S110: Detect the strain gauge periodically, and save the digital signal obtained by the detection in real time according to the preset signal saving conditions.

[0047] After the pressure-sensitive pen is powered on, it enters the working state and starts to detect the strain gauge cycle. For the preset number of digital signals detected first after power-on, since they are not affected by external force at this time and are of course at the pressure zero position, the existing signal processing method can be used to directly confirm that the pressure value corresponding to the current resistance is zero, which is defined as the initial reference signal value in the digital signal corresponding to the AD module. Specifically, a sliding average method is used to confirm the initial reference signal value based on multiple digital signals (for example, 20).

[0048] During the strain detection process, if only the pressure state is confirmed by comparing with the reference signal value, the voltage signal detected in each cycle can be obtained by independent processing. For the signal characteristics of the strain gauge when it is deformed, it is not directly obtained through a digital signal with characteristics, but a certain number of digital signals are required to confirm the deformation change process of the strain gauge. Plastic deformation is no exception. It can only be confirmed based on the continuous change of multiple digital signals. Based on this, the scheme specifically saves the most recently collected preset number of digital signals for confirmation. The preset number is confirmed based on the acquisition frequency and the general time taken for the strain gauge to disappear from the external force to stabilize the shape. For example, the detection frequency of the strain gauge in a certain pressure-sensitive pen is aHz (i.e., a times / second), and the general time taken from the disappearance of the external force to the stability of the shape is bs. Then the corresponding preset number is a×b times, and the actual preset number can also be slightly larger than a×b, so that the signal content corresponding to the deformation change process can be fully recorded and accurate state judgment can be provided. When the number of records reaches the preset number, it can be confirmed whether it matches the preset signal correction condition.

[0049] Step S120: Map the stored digital signal in a time-intensity coordinate system to generate a signal change curve.

[0050] The time-intensity coordinate system refers to a coordinate system with signal intensity as the vertical axis and time as the horizontal axis. When each digital signal is mapped to the time-intensity coordinate system according to the corresponding acquisition time and the detected signal intensity, a point is obtained. The points are connected in sequence to obtain a signal change curve. The specific connection method can be to connect point by point with line segments to obtain the signal change curve, or to fit point by point to obtain a smooth curve as the signal change curve.

[0051] Step S130: confirm the matching state of the signal change curve with the preset signal correction condition according to the coefficient change state of the signal change curve and the intersection state of the signal change curve and the preset reference signal reference line. The reference signal reference line is confirmed according to the current reference signal value.

[0052] The deformation types of strain gauges can be roughly divided into two types. The first type is deformation under stress, which can automatically recover to the state before stress after the external force disappears, that is, the deformation process is elastic deformation; the second type is deformation under stress, which cannot automatically recover to the state before stress after the external force disappears, that is, the deformation process is plastic deformation. Corresponding to the change process of the digital signal itself, the first type of digital signal changes from the digital signal corresponding to the pressure zero position, and finally stabilizes to the digital signal of the pressure zero position (or the difference is very small, which can be equivalent to the signal of the pressure zero position), and the second type of digital signal changes from the digital signal corresponding to the pressure zero position, and finally stabilizes to a digital signal that is obviously different from the pressure zero position. In this scheme, the difference between the signal change curves in these two states is extracted, and the difference in the second case is characterized by the signal correction condition. When the actual signal change curve meets the signal correction condition, plastic deformation is confirmed. The difference is mainly related to the range of signal strength and the size of signal strength. On the whole, the signal strength is actually in the normal recovery deformation process. The signal strength remains unchanged, and the strength maintained is not the strength of the pressure zero position. According to the deformation process of the strain gauge described above, the second situation can be roughly divided into stability in the positive deformation process and stability in the negative deformation process. The stability in these two deformation processes corresponds to change characteristics and size characteristics. In the image based on the coordinate system, the change process is reflected in the coefficient change state of the curve.

[0053] Step S140: When confirming that the signal variation curve matches the signal correction condition, calibrate the reference signal value.

[0054] Regardless of the type of plastic deformation that occurs in the strain gauge, the reference signal value can be generated in an existing manner, such as the sliding average method of generating the initial reference signal value described above. In this process, because the digital signal is generated at a high frequency, the actual calibration process is very short, and there is basically no obvious inconsistency in the normal interactive response.

[0055] In the specific processing process, the signal correction conditions include positive correction conditions and negative correction conditions. The positive correction conditions are used to characterize the characteristics of the corresponding signal change curve before and after the strain gauge undergoes positive plastic deformation; the negative correction conditions are used to characterize the characteristics of the corresponding signal change curve before and after the strain gauge undergoes negative plastic deformation; in step S140, when it is confirmed that the signal change curve matches the positive correction condition or the negative correction condition, the reference signal value is corrected. For the signal change curve, as long as any one of the positive correction conditions and the negative correction conditions is met, the reference signal value needs to be corrected. The positive correction condition and the negative correction condition here are used to confirm that the signal change curve is in positive plastic deformation and negative plastic deformation, respectively. Any of these two deformations requires correction of the reference signal value, and the specific correction method is the same.

[0056] In a specific digital signal processing process, the embodiment of the present application provides two signal change curve processing processes, one is a line segment-based processing method, and the other is a smooth curve-based processing method.

[0057] The processing method based on line segments is equivalent to step S120, which includes: mapping the stored digital signal in the time-intensity coordinate system, connecting the points formed by the mapping in sequence according to the detection order, and generating a signal change curve composed of multiple line segments connected in sequence; correspondingly, the coefficient change state is the change state of the slope of multiple line segments. This method is equivalent to directly describing the change process of signal intensity as a change from point to point. By comparing the signal intensity change process of fully recovered elastic deformation, positive plastic deformation and negative plastic deformation, it can be found that the positive correction condition is that the number of continuously collected digital signals greater than the current reference signal value reaches a first preset value, and the number of continuous line segments with a slope within the first change threshold reaches a second preset value; the negative correction condition is that the signal change curve has a sub-segment located below the reference line of the reference signal, the sub-segment ends with the digital signal of the current cycle, and the line segment with a slope within the second change threshold before the end reaches a third preset value.

[0058] The processing method based on the smooth curve is equivalent to step S120, which includes: mapping the saved digital signal in the time-intensity coordinate system, fitting the points formed by the mapping, and generating a smooth curve as the signal change curve; correspondingly, the coefficient change state is the change state of the derivative of the smooth curve. This method is equivalent to describing the change process of the signal intensity as a gradual process. By comparing the signal intensity change process of the fully recovered elastic deformation, positive plastic deformation and negative plastic deformation, it can be found that the positive correction condition is that the digital signal is continuously collected to a number greater than the current reference signal value reaching a first preset value, and the duration corresponding to the signal change curve within the second change threshold reaches the first preset duration; the negative correction condition is that the signal change curve has a sub-segment with the digital signal of the current cycle as the end point located below the reference line of the reference signal, and the duration corresponding to the signal change curve with the derivative approaching 0 between the end points reaches the second preset duration.

[0059] The pressure-sensitive pen includes a strain gauge 10 and a pusher 11. The pusher 11 is connected to the pen tip or is directly the upper end of the pen tip (the end that contacts the writing surface when writing is the lower end). Figure 2-Figure 7 , Figure 2 Schematic diagram of the initial state of the strain gauge in the pressure-sensitive pen, in which the strain gauge 10 is in a relatively ideal state, the pusher 11 is in contact with the strain gauge 10 and the force between them is zero, which is also the initial pressure zero point position of the strain gauge 10. Please refer to Figure 3, which is the strain gauge 10 in the pressure-sensitive pen Figure 2 The schematic diagram of the writing state of the basis, during the writing process, the pusher 11 is subjected to pressure from below, and the pressure is transmitted to the strain gauge 10 to cause positive deformation. Figure 3 The writing force is small, and the strain gauge 10 will return to Figure 2 The pressure zero position shown is Figure 3 When the writing force is large, the strain gauge 10 may rebound beyond the zero pressure point. Figure 4 As shown, the strain gauge 10 may cause the pusher 11 to also change its initial position. Figure 4 The rebound of the strain gauge 10 beyond the zero pressure position may eventually fail to return to the zero pressure position, that is, negative plastic deformation occurs. At this time, the state of the strain gauge 10 and the pusher 11 is as follows: Figure 5 As shown. Figure 5 When writing on the basis of Figure 6 As shown, negative plastic deformation should be the new pressure zero point position. Figure 6 The pressure required for the strain gauge 10 to deform from the dotted line state to the solid line state is the pressure applied by the pusher 11 to the strain gauge 10, which is obviously not 0. Figure 2 The signal strength in the ideal state is taken as the reference signal value. Figure 2 and Figure 7 The difference of strain gauge 10 in is 0, Figure 6 The state shown corresponds to a pressure value of 0, and the result is obviously wrong. Figure 7 This is a schematic diagram of the state of the strain gauge in the pressure-sensitive pen writing based on positive deformation. The overall analysis process is the same as that of negative plastic deformation.

[0060] Specifically, in the processing of signal strength and signal change curve, such as Figure 8 The figure shows a schematic diagram of the signal change curve corresponding to the pressure detection of a normal writing with a small writing force, where the AD value represents the strength of the detected digital signal, and Base represents Figure 2 The reference signal value obtained by the state detection shown, where A represents Figure 2 Signal strength in the indicated state, B indicates Figure 3 The signal strength in the state shown, C means the normal writing ends and returns to Figure 2 The signal strength in the state shown. If the writing force is strong, Figure 8 Based on this, further Fig. 9 The process from C→D→E is shown, that is, recovery to Figure 2 Continue to rebound after the state shown Figure 4 The status shown is restored to Figure 2If the writing force is so great that it exceeds the stress limit of the strain gauge or structural component, it will not be able to recover to the state shown. Figure 2 The plastic deformation of the state shown can only be maintained in Figure 4 The status shown is that the signal strength is Fig.10 As shown in the figure, when there is no external force, the signal value will remain lower than the reference signal value. At this time, the reference signal value should be corrected to obtain Base`. In subsequent detection, Base` is used as the reference signal value. The signal strength detected later is as follows Fig.11 shown. Fig.12 and Fig.13 They are shown in Figure 2 Schematic diagram of two signal change curves of positive plastic deformation when writing in the state shown, where Fig.12 When writing with great force, plastic deformation occurs directly when approaching the maximum deformation. Fig.13 When writing vigorously, the properties are deformed during the recovery process, so Fig.12 Maintain a high signal strength. Fig.13 It is the signal strength that is maintained greater than the reference signal value after a certain degree of decline.

[0061] The setting of signal correction conditions in this scheme comes from Fig.10 (negative plastic deformation) and Fig.12 (or Fig.13 , positive plastic deformation) are respectively Figure 8 (or Fig. 9 , normal elastic deformation) signal change curve comparison analysis, it can be found that compared with the normal writing process, it is not stable to maintain a state different from the reference signal value. It will only appear when the strain gauge is not at the initial pressure zero position without external force. Fig.10 , Fig.12 and Fig.13 The curve characteristics in this scheme are described as the relationship between the value of the reference signal and the change trend of the corresponding derivative. If the line segment connection method is adopted, the slope of the straight line where a processing line segment is located is judged. The overall design idea is the same and will not be repeated here.

[0062] It should be understood that if the signal change curve is confirmed to match the signal correction condition, it is the result of the judgment based on the previously saved digital signal as a whole. After the reference signal is corrected, the previous digital signal has no reference significance. Therefore, starting from the correction of the reference signal, the previously saved digital signal is cleared and the latest detection result is saved. If the signal change curve is confirmed to not match the signal correction condition, it means that the current signal detection is correct and no adjustment is required. When the preset number of digital signals is saved, the earliest saved digital signal is cleared to obtain the digital signal corresponding to the latest strain gauge change state.

[0063] In the above, the strain gauge cycle is detected, and the digital signal obtained by the detection is saved in real time according to the preset signal saving conditions; the saved digital signal is mapped in the time-intensity coordinate system to generate a signal change curve; according to the coefficient change state of the signal change curve and the intersection state of the signal change curve and the preset reference signal reference line, the matching state of the signal change curve and the preset signal correction condition is confirmed, and the reference signal reference line is confirmed according to the current reference signal value; when it is confirmed that the signal change curve matches the signal correction condition, the reference signal value is corrected. By performing coordinate mapping and image processing on the detection results for a period of time, and then analyzing the obtained signal change curve, when it is confirmed that the signal change curve matches the preset signal correction condition, it can be confirmed that the current signal detection has a deviation, and the preset reference signal value is reset and updated, so as to achieve accurate detection in the subsequent detection process.

[0064] Fig.14 This is a schematic diagram of the structure of a pressure-sensitive pen parameter calibration device provided by an embodiment of the present invention. Fig.14 The pressure-sensitive pen parameter correction device includes a detection and storage unit 210, a curve generation unit 220, a state matching unit 230 and a correction confirmation unit 240.

[0065] Among them, the detection and storage unit 210 is used to detect the strain gauge period and save the digital signal obtained by the detection in real time according to the preset signal storage conditions; the curve generation unit 220 is used to map the saved digital signal in the time-intensity coordinate system to generate a signal change curve; the state matching unit 230 is used to confirm the matching state of the signal change curve with the preset signal correction condition according to the coefficient change state of the signal change curve and the intersection state of the signal change curve with the preset reference signal reference line, and the reference signal reference line is confirmed according to the current reference signal value; the correction confirmation unit 240 is used to correct the reference signal value when confirming that the signal change curve matches the signal correction condition.

[0066] On the basis of the above embodiment, the signal correction condition includes a positive correction condition and a negative correction condition. The positive correction condition is used to characterize the characteristics of the corresponding signal change curve before and after the strain gauge undergoes positive plastic deformation; the negative correction condition is used to characterize the characteristics of the corresponding signal change curve before and after the strain gauge undergoes negative plastic deformation;

[0067] Accordingly, the calibration confirmation unit 240 includes:

[0068] The calibration condition confirmation module is used to calibrate the reference signal value when confirming that the signal change curve matches the positive calibration condition or the negative calibration condition.

[0069] Based on the above embodiment, the curve generating unit 220 includes:

[0070] A line segment connection module is used to map the stored digital signal in a time-intensity coordinate system, connect the mapped points in sequence according to the detection order, and generate a signal change curve composed of multiple line segments connected in sequence;

[0071] Correspondingly, the coefficient change state is the change state of the slopes of the multiple line segments.

[0072] Based on the above embodiment, the positive correction condition is that the number of continuously collected digital signals greater than the current reference signal value reaches a first preset value, and the number of continuous line segments with slopes within the first change threshold reaches a second preset value;

[0073] The negative correction condition is that the signal change curve has a sub-segment located below the reference line of the benchmark signal, the sub-segment ends at the digital signal of the current cycle, and the line segment with a slope within the second change threshold before the end reaches a third preset value.

[0074] Based on the above embodiment, the curve generating unit 220 includes:

[0075] A curve fitting unit is used to map the stored digital signal in a time-intensity coordinate system, fit the points formed by the mapping, and generate a smooth curve as a signal change curve;

[0076] Correspondingly, the coefficient variation state is the variation state of the derivative of the smooth curve.

[0077] On the basis of the above embodiment, the positive correction condition is that the number of digital signals continuously collected that is greater than the current reference signal value reaches a first preset value, and the duration corresponding to the signal change curve of the derivative within the second change threshold reaches the first preset duration;

[0078] The negative correction condition is that the signal change curve has a sub-segment with the digital signal of the current cycle as the end point located below the reference line of the benchmark signal, and the duration of the signal change curve whose derivative between the end points approaches 0 reaches a second preset duration.

[0079] Based on the above embodiment, the signal preservation condition is a preset number of digital signals collected recently.

[0080] On the basis of the above embodiment, the pressure-sensitive pen parameter correction device further includes:

[0081] The initial reference generating unit is used to generate an initial reference signal value according to a preset number of digital signals detected first after power-on.

[0082] The pressure-sensitive pen parameter correction device provided in the embodiment of the present invention is included in an electronic device and can be used to execute any pressure-sensitive pen parameter correction method provided in the above embodiments, and has corresponding functions and beneficial effects.

[0083] It is worth noting that in the embodiment of the above-mentioned pressure-sensitive pen parameter correction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0084] Fig.15 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig.15 As shown, the electronic device includes a processor 310 and a memory 320, and may also include an input device 330, an output device 340 and a communication device 350; the number of the processor 310 in the electronic device may be one or more, Fig.15 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330, the output device 340 and the communication device 350 in the electronic device can be connected via a bus or other means. Fig.15 The example of connecting through bus is taken in the following.

[0085] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the pressure-sensitive pen parameter correction method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 320, that is, implements the above-mentioned pressure-sensitive pen parameter correction method.

[0086] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the electronic device 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.

[0087] The input device 330 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 340 may include a display device such as a display screen.

[0088] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to perform relevant operations in the pressure-sensitive pen parameter correction method provided in any embodiment of the present application, and has corresponding functions and beneficial effects.

[0089] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.

[0090] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0094] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A pressure-sensitive pen parameter calibration method, characterized in that: include: Detect the strain gauge periodically and save the digital signal obtained in real time according to the preset signal saving conditions; Map the saved digital signal in the time-intensity coordinate system to generate a signal change curve; Confirming the matching state of the signal change curve with a preset signal correction condition according to the coefficient change state of the signal change curve and the intersection state of the signal change curve with a preset reference signal reference line, wherein the reference signal reference line is confirmed according to the current reference signal value; When it is confirmed that the signal change curve matches the signal correction condition, the reference signal value is corrected.

2. The pressure-sensitive pen parameter calibration method according to claim 1, characterized in that: The signal correction condition includes a positive correction condition and a negative correction condition. The positive correction condition is used to characterize the characteristics of the corresponding signal change curve before and after the strain gauge undergoes positive plastic deformation; the negative correction condition is used to characterize the characteristics of the corresponding signal change curve before and after the strain gauge undergoes negative plastic deformation; Correspondingly, when confirming that the signal change curve matches the signal correction condition, correcting the reference signal value includes: When it is confirmed that the signal change curve matches the positive correction condition or the negative correction condition, the reference signal value is corrected.

3. The pressure-sensitive pen parameter calibration method according to claim 2, characterized in that: The step of mapping the stored digital signal in a time-intensity coordinate system to generate a signal change curve includes: Mapping the stored digital signal in a time-intensity coordinate system, connecting the mapped points in sequence according to the detection order, and generating a signal change curve composed of a plurality of line segments connected in sequence; Correspondingly, the coefficient change state is the change state of the slopes of the multiple line segments.

4. The pressure-sensitive pen parameter calibration method according to claim 3, characterized in that: The forward correction condition is that the number of continuously collected digital signals greater than the current reference signal value reaches a first preset value, and the number of continuous line segments with slopes within the first change threshold reaches a second preset value; The negative correction condition is that the signal change curve has a sub-segment located below the reference line of the baseline signal, the sub-segment ends at the digital signal of the current cycle, and the line segment with a slope within the second change threshold before the end point reaches a third preset value.

5. The pressure-sensitive pen parameter calibration method according to claim 2, characterized in that: The step of mapping the stored digital signal in a time-intensity coordinate system to generate a signal change curve includes: The stored digital signal is mapped in a time-intensity coordinate system, and the points formed by the mapping are fitted to generate a smooth curve as a signal change curve; Correspondingly, the coefficient change state is the change state of the derivative of the smooth curve.

6. The pressure-sensitive pen parameter calibration method according to claim 5, characterized in that: The forward correction condition is that the number of digital signals continuously collected that is greater than the current reference signal value reaches a first preset value, and the duration corresponding to the signal change curve whose derivative is within the second change threshold reaches a first preset duration; The negative correction condition is that a sub-segment of the signal change curve having a digital signal of the current cycle as an end point is located below the reference line of the benchmark signal, and the duration of the signal change curve whose derivative approaches 0 between the end points reaches a second preset duration.

7. The pressure-sensitive pen parameter calibration method according to any one of claims 1 to 6, characterized in that: The signal storage condition is a preset number of digital signals collected recently.

8. The pressure-sensitive pen parameter calibration method according to any one of claims 1 to 6, characterized in that: Also includes: After power-on, an initial reference signal value is generated according to a preset number of digital signals detected first.

9. A pressure-sensitive pen parameter calibration device, characterized in that: include: A detection and storage unit is used to detect the strain gauge cycle and save the digital signal obtained by the detection in real time according to the preset signal storage conditions; A curve generating unit, used for mapping the stored digital signal in a time-intensity coordinate system to generate a signal variation curve; a state matching unit, configured to confirm a matching state of the signal change curve with a preset signal correction condition according to a coefficient change state of the signal change curve and an intersection state of the signal change curve with a preset reference signal reference line, wherein the reference signal reference line is confirmed according to a current reference signal value; The calibration confirmation unit is used to calibrate the reference signal value when confirming that the signal variation curve matches the signal calibration condition.

10. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the electronic device implements the pressure-sensitive pen parameter correction method as described in any one of claims 1-8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the pressure-sensitive pen parameter correction method as described in any one of claims 1 to 8 is implemented.