Method and device for preventing ink leakage of nib of pressure-sensitive active pen and pressure-sensitive active pen
By adjusting the zero point AD value and the induced current signal, the distance between the pen and the screen is determined, the pressure-sensitive active pen ink leakage problem is solved, the temperature drift and lag errors are avoided, and the zero point AD value is automatically updated when the distance between the pen and the screen is too far, to prevent Leaking ink.
Patent Information
- Application Number
- CN202310800738.5
- 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
When the tip of the pen touches or does not touch the display screen, the user may leak ink without exerting force, because the zero point AD value changes due to lag or interference.
By determining the zero point AD value, collecting the real-time AD value, calculating its absolute value from the zero point AD value, and adjusting the zero point AD value according to the absolute value; collecting the induced current signal to determine whether the distance between the pen and the screen is greater than the preset threshold, and if it is greater, re-determining Zero AD value to avoid ink leakage.
It effectively avoids the errors caused by the temperature drift of the pressure sensor and the structural lag, prevents ink leakage, and automatically updates the zero point AD value when the pen is too far from the screen.
Smart Images

Figure CN119225547A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of pressure-sensitive active pens, and in particular to a method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and a pressure-sensitive active pen. Background Art
[0002] With the widespread use of smart tablets, pressure-sensitive active pens used in conjunction with smart tablets are becoming more and more popular.
[0003] The working process of a pressure-sensitive active pen is usually as follows: (1) the pen tip AD collects pressure data; (2) the MCU calculates the collected pressure value; (3) the DA outputs a pressure signal; (4) the display device displays the corresponding thickness of the handwriting according to the pressure signal.
[0004] However, when the tip of the pressure-sensitive active pen just touches or does not touch the display screen, and the user has not applied force, handwriting may appear on the screen. This situation is called ink leakage of the pressure-sensitive active pen. The reason for ink leakage at the AD end of the tip of the pressure-sensitive active pen is generally due to a change in the zero-point AD value caused by a jam or interference. Summary of the invention
[0005] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device and pressure-sensitive active pen for preventing ink leakage from the pen tip of a pressure-sensitive active pen. The technical solution is as follows:
[0006] In a first aspect, a method for preventing ink leakage from a pressure-sensitive active pen tip is provided, comprising the following steps:
[0007] Determine the zero AD value;
[0008] Collecting a real-time AD value, and calculating an absolute value of a difference between the real-time AD value and the zero-point AD value;
[0009] adjusting the zero point AD value according to the absolute value of the difference between the real-time AD value and the zero point AD value;
[0010] Collecting an induced current signal, and determining whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold according to the induced current signal;
[0011] If it is greater than the preset distance threshold, the process of determining the zero point AD value is executed again.
[0012] Further, the determining of the zero AD value includes:
[0013] Continuously collect a preset number of real-time AD values;
[0014] From the preset number of real-time AD values, a maximum value and a minimum value are deleted, and an average value of the remaining real-time AD values is calculated as the zero-point AD value.
[0015] Further, adjusting the zero point AD value according to the absolute value of the difference between the real-time AD value and the zero point AD value includes:
[0016] If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value;
[0017] If the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, the pressure-sensitive active pen state is determined; when the pressure-sensitive active pen state is stuck, the process of determining the zero-point AD value is re-executed.
[0018] Further, if the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value includes:
[0019] If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the real-time AD value is collected again, and after each collection, the zero-point AD value is adjusted by a preset adjustment value until the zero-point AD value is equal to the real-time AD value.
[0020] Further, if the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, determining the state of the pressure-sensitive active pen, and when the state of the pressure-sensitive active pen is stuck, re-executing the process of determining the zero-point AD value includes:
[0021] Continuously collect a preset number of real-time AD values;
[0022] Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values;
[0023] The difference between the maximum real-time AD value and the minimum real-time AD value is calculated. If the difference is less than a preset maximum threshold, it is determined that the state of the pressure-sensitive active pen is stuck, and the process of determining the zero-point AD value is re-executed.
[0024] Furthermore, after continuously collecting a preset number of real-time AD values, the method further includes:
[0025] The absolute value of the difference between two adjacent real-time AD values is calculated in sequence. If the absolute value of the difference between two adjacent real-time AD values is less than the preset adjacent difference threshold by more than the interference upper limit threshold, the state of the pressure-sensitive active pen is determined to be stuck, and the process of determining the zero-point AD value is re-executed.
[0026] In a second aspect, a device is provided to prevent ink leakage from a tip of a pressure-sensitive active pen, comprising:
[0027] Baseline module, used to determine the zero-point AD value;
[0028] An acquisition module, used for acquiring a real-time AD value, and calculating an absolute value of a difference between the real-time AD value and the zero-point AD value;
[0029] An adjustment module, used for adjusting the zero-point AD value according to the absolute value of the difference between the real-time AD value and the zero-point AD value;
[0030] A distance module, used to collect an induction current signal and determine whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold according to the induction current signal;
[0031] The baseline module is further configured to re-execute the process of determining the zero-point AD value if the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold.
[0032] Furthermore, the baseline module is specifically used for:
[0033] Continuously collect a preset number of real-time AD values;
[0034] From the preset number of real-time AD values, a maximum value and a minimum value are deleted, and an average value of the remaining real-time AD values is calculated as the zero-point AD value.
[0035] Furthermore, the adjustment module is specifically used for:
[0036] If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value;
[0037] If the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, the state of the pressure-sensitive active pen is determined. When the state of the pressure-sensitive active pen is stuck, the baseline module is called to re-execute the process of determining the zero-point AD value.
[0038] Furthermore, the adjustment module is specifically used for:
[0039] If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the real-time AD value is collected again, and after each collection, the zero-point AD value is adjusted by a preset adjustment value until the zero-point AD value is equal to the real-time AD value.
[0040] Furthermore, the adjustment module is specifically used for:
[0041] Continuously collect a preset number of real-time AD values;
[0042] Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values;
[0043] The difference between the maximum real-time AD value and the minimum real-time AD value is calculated. If the difference is less than a preset maximum threshold, it is determined that the state of the pressure-sensitive active pen is stuck, and the baseline module is called to re-execute the process of determining the zero-point AD value.
[0044] Furthermore, the adjustment module is further used to:
[0045] The absolute value of the difference between two adjacent real-time AD values is calculated in sequence. If the absolute value of the difference between two adjacent real-time AD values is less than the preset adjacent difference threshold by more than the interference upper limit threshold, the state of the pressure-sensitive active pen is determined to be stuck, and the baseline module is called to re-execute the process of determining the zero-point AD value.
[0046] In a third aspect, a pressure-sensitive active stylus is provided, wherein the pressure-sensitive active stylus comprises the device for preventing ink leakage from the tip of the pressure-sensitive active stylus as described in the second aspect above.
[0047] The technical solution provided in the embodiment of the present application has the following beneficial effects: in the embodiment of the present application, the zero-point AD value is determined; the real-time AD value is collected, and the absolute value of the difference between the real-time AD value and the zero-point AD value is calculated; the zero-point AD value is adjusted according to the absolute value of the difference between the real-time AD value and the zero-point AD value; the induced current signal is collected, and the distance between the pressure-sensitive active pen and the screen is determined to be greater than the preset distance threshold according to the induced current signal; if it is greater than the preset distance threshold, the process of determining the zero-point AD value is re-executed. In this way, by adjusting the zero-point AD value through the real-time AD value, the problem of ink leakage caused by the error caused by the temperature drift of the pressure sensor itself and the structural jam can be effectively avoided, and the zero-point AD value can be automatically updated when the distance between the pressure-sensitive active pen and the screen is too far. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 It is a flow chart of a method for preventing ink leakage from the tip of a pressure-sensitive active pen provided in an embodiment of the present application;
[0050] Figure 2 It is a structural schematic diagram of a device for preventing ink leakage from the tip of a pressure-sensitive active pen provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0052] When a user writes with a pressure-sensitive active pen, a certain amount of pressure will be exerted on the pen tip. The pressure of the pen tip changes all the time. Each pressure value corresponds to a different thickness of handwriting. Countless different pressure values and the corresponding handwriting thickness can form a "pressure-handwriting thickness" curve graph, that is, the pressure of the pressure-sensitive active pen is the horizontal coordinate, and the handwriting thickness is the vertical coordinate of the "pressure-handwriting thickness" curve graph. "Pressure-handwriting thickness" can directly reflect the changes in the pen tip and the fullness of the handwriting when the user starts, moves, and ends the writing, and determines the writing experience of a pressure-sensitive active pen. When doing calligraphy and painting homework, the "pressure-handwriting thickness" curve graph is particularly important. The "pressure-handwriting thickness" curve graph is the most important parameter indicator to measure the quality of a pressure-sensitive pen.
[0053] The working process of a pressure-sensitive active pen usually includes: (1) the pen tip AD collects pressure data; (2) the MCU calculates the collected pressure value; (3) the DA outputs a pressure signal; (4) the display device displays the corresponding thickness of the handwriting according to the pressure signal.
[0054] When the tip of the pressure-sensitive active pen just touches or does not touch the display screen, and the user does not apply force, if the handwriting is also written on the screen, this situation is called ink leakage of the pressure-sensitive active pen. The reason for ink leakage at the AD end of the tip of the pressure-sensitive active pen is generally due to a change in the zero-point AD value caused by a jam or interference.
[0055] From the working process of the pressure-sensitive active pen, it can be seen that ink leakage may occur at the four nodes in the working process. In actual use, ink leakage at the last three nodes is easier to eliminate and solve, while the first node, that is, the node where the pen tip AD collects pressure data, is more difficult to solve.
[0056] When the pressure-sensitive active pen is used normally, the display screen will only show the handwriting when the pen tip touches the screen and pressure is applied. Under normal circumstances, the percentage of note thickness in the "pressure-handwriting thickness" curve should be 0% when no force is applied. When ink leaks, it is not 0%. However, in actual situations, due to technical and cost limitations, the structure of the pressure sensor is often not particularly precise, and the consistency of each pressure sensor is also different. Therefore, even if the same pressure sensor is used, two pressure-sensitive active pens may not necessarily get the same "pressure-handwriting thickness" curve. As the number of uses increases, the physical structure of the pressure sensor may also undergo some very subtle changes, causing the pressure sensor to deform, so that it cannot return to its original position when no force is applied, and ink leakage will occur.
[0057] Based on this, the embodiment of the present application provides a method, device and pressure-sensitive active pen for preventing ink leakage from the tip of a pressure-sensitive active pen. During the operation of the pressure-sensitive active pen, the real-time AD value is continuously collected, and then the absolute value of the difference with the zero-point AD value is calculated, and then according to whether the absolute value is greater than or less than or equal to a preset threshold, it is determined how to adjust the zero-point AD value.
[0058] The following will be combined with specific implementation methods. Figure 1 A processing flow for preventing ink leakage from the tip of a pressure-sensitive active pen is described in detail, and the content may be as follows:
[0059] Step 101: Determine the zero point AD value.
[0060] In implementation, when the pressure-sensitive active pen is first used, it is necessary to first determine the zero-point AD value. The zero-point AD value can be understood as the pressure value generated by the pressure sensor when the pressure-sensitive active pen is not in the writing state and the external pressure on the pen tip is zero or almost zero. Through the zero-point AD value, the deformation degree of the pressure sensor can be determined during the application of the pressure-sensitive active pen, and then the writing force during writing can be determined. In this way, in the subsequent use process, the pressure-sensitive active pen can judge the specific pressure of the pen tip according to the deformation degree of the pressure sensor, and then determine the thickness and length of the corresponding handwriting in combination with the "pressure-handwriting thickness" curve chart, thereby reflecting the difference in handwriting under different writing forces. It can be understood that the zero-point AD value of the pressure-sensitive active pen can be pre-set by the manufacturer at the time of leaving the factory and stored in the pressure-sensitive active pen, or it can be determined by other means after leaving the factory, and this application is not specifically limited here.
[0061] Optionally, the zero-point AD value can be automatically determined after the pressure-sensitive active pen is powered on, and the corresponding processing can be as follows: continuously collect a preset number of real-time AD values; delete a maximum value and a minimum value from the preset number of real-time AD values, and calculate the average value of the remaining real-time AD values as the zero-point AD value.
[0062] In implementation, after the pressure-sensitive active pen is powered on (newly installed or replaced with a battery), it can automatically perform initialization and other processing, and then immediately collect a preset number of real-time AD values continuously at a preset frequency (such as 1 frame). Because unexpected factors may cause the real-time AD value to be abnormal (suddenly increase or suddenly decrease), one of the maximum and minimum values can be deleted, and then the average value of the remaining real-time AD values can be calculated, and the result is used as the zero-point AD value. After obtaining the zero-point AD value, the pressure-sensitive active pen can store it locally, and when the zero-point AD value is needed during the subsequent use of the pressure-sensitive active pen, it can be used at any time. In this embodiment, it is usually possible to collect real-time AD values of 10 consecutive frames just after power-on, such as: 8, 9, 10, 11, 10, 10, 11, 9, 11, 11, and then delete a maximum value 11 and a minimum value 8, and calculate the average value of the remaining 8 frames of real-time AD values of 9, 10, 11, 10, 10, 11, 9, 10 as 10, then set the zero-point AD value to 10.
[0063] Step 102: Collect the real-time AD value, and calculate the absolute value of the difference between the real-time AD value and the zero-point AD value.
[0064] Step 103: adjusting the zero-point AD value according to the absolute value of the difference between the real-time AD value and the zero-point AD value.
[0065] In practice, the pressure-sensitive active pen collects real-time AD values at any time during operation, and then calculates the difference between the real-time AD value and the zero-point AD value obtained above, and then takes the absolute value of the difference. Then, based on the absolute value obtained, it is determined whether the zero-point AD value needs to be adjusted and the specific adjustment method.
[0066] Optionally, the absolute value of the difference between the real-time AD value and the zero-point AD value can be compared with a preset threshold value, and the zero-point AD value can be adjusted accordingly based on different results. The corresponding processing can be as follows: if the absolute value of the difference between the real-time AD value and the zero-point AD value is less than the preset threshold value, the zero-point AD value is adjusted to the real-time AD value; if the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than the preset threshold value, the state of the pressure-sensitive active pen is determined, and when the state of the pressure-sensitive active pen is stuck, the process of determining the zero-point AD value is re-executed.
[0067] In implementation, the preset threshold value can be pre-set in the pressure-sensitive active pen. When the pressure-sensitive active pen needs it, the preset threshold value can be directly obtained. At this time, the preset threshold value can be manually set and stored in the MCU of the pressure-sensitive active pen before the pressure-sensitive active pen leaves the factory. The method for determining the preset threshold value is not specifically limited in this application. For example, the writing data of the current batch of pressure-sensitive active pens when they are used is manually collected, and the writing data includes the pressure value generated by the pressure sensor. Then, the preset threshold value is calculated and counted based on the pressure value. For example, based on the pressure value of the pressure sensor during the writing process of each pressure-sensitive active pen and the reference pressure value of the pressure sensor (i.e., the zero-point AD value described above), the AD value corresponding to each pressure-sensitive active pen when it just prints out ink is determined, and then the pressure changes are counted to obtain the AD value that best reflects the ink just coming out and used as the preset threshold value. Among them, the statistical method is not limited in this application. It can be understood that the structure, parameters, and pressure sensors and other devices used in the same batch of pressure-sensitive active pens are the same.
[0068] After calculating the absolute value of the difference between the real-time AD value and the zero-point AD value, the preset threshold and the absolute value are compared. When the absolute value is less than the preset threshold, the zero-point AD value can be adjusted until the zero-point AD value is equal to the real-time AD value; when the absolute value is greater than the preset threshold, it can be further determined whether the pressure-sensitive active pen is currently stuck. If the pressure-sensitive active pen is stuck, the process of determining the zero-point AD value in step 101 is re-executed; when the absolute value is equal to the preset threshold, the zero-point AD value does not need to be adjusted.
[0069] Optionally, if the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the processing of adjusting the zero-point AD value to the real-time AD value may be as follows: if the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the real-time AD value is collected again, and after each collection, the zero-point AD value is adjusted by the preset adjustment value until the zero-point AD value is equal to the real-time AD value.
[0070] In implementation, when the absolute value of the difference between the real-time AD value and the zero-point AD value is less than the preset threshold after comparison, the pressure-sensitive active pen can start to adjust the zero-point AD value. Specifically, the pressure-sensitive active pen can continue to collect real-time AD values at a preset frequency (such as 1 frame), and each time after collecting real-time AD values, the zero-point AD value is moved closer to the real-time AD value by a preset adjustment value, until the real-time AD value obtained after a certain collection is equal to the adjusted zero-point AD value, then the adjustment of the zero-point AD value is stopped, and the zero-point AD value at this time is used as the latest zero-point AD value.
[0071] For example, the preset threshold of the pressure-sensitive active pen can be 3. According to the zero-point AD value of 10 mentioned above, when 7<real-time AD value<13, the absolute value of the difference between the real-time AD value and the zero-point AD value is less than the preset threshold 3. If the real-time AD value is 8, it can be judged that the absolute value of the difference between the real-time AD value and the zero-point AD value is less than the preset threshold (|8-10|=2<3); then the pressure-sensitive active pen continues to collect the real-time AD value (assuming it is still 8), and then adjusts the zero-point AD value with the preset adjustment value (1AD value), 10-1=9, and obtains a new zero-point AD value of 9, at which time the new zero-point AD value ≠ real-time AD value; therefore, the pressure-sensitive active pen continues to collect the real-time AD value (assuming it is still 8), and adjusts the new zero-point AD value with the preset adjustment value (1AD value), 9-1=8, and obtains a new zero-point AD value of 8, at which time, the new zero-point AD value=real-time AD value, and the pressure-sensitive active pen uses 8 as the zero-point AD value and stops adjusting the zero-point AD value. It should be noted that in this embodiment, the preset threshold, the acquisition frequency of the real-time AD value and the preset adjustment value can be specifically set according to actual needs. The data used in this embodiment is only for illustrative purposes and this application does not make any specific limitations here.
[0072] Optionally, determine the state of the pressure-sensitive active pen. When the state of the pressure-sensitive active pen is stuck, re-execute the process of determining the zero-point AD value. Specifically, it can be as follows: continuously collect a preset number of real-time AD values; determine the maximum real-time AD value and the minimum real-time AD value among the preset number of real-time AD values; calculate the difference between the maximum real-time AD value and the minimum real-time AD value. If it is less than a preset maximum threshold, determine that the state of the pressure-sensitive active pen is stuck, and re-execute the process of determining the zero-point AD value.
[0073] In implementation, when the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than the preset threshold after comparison, the real-time AD value and the zero-point AD value can be compared first. Then further determine whether the pressure-sensitive active pen is currently in a stuck state. Specifically, a preset number of real-time AD values can be continuously collected to filter out the maximum real-time AD value and the minimum real-time AD value. Then calculate the difference between the maximum real-time AD value and the minimum real-time AD value. Compare the obtained difference with the preset maximum threshold. If the difference is less than the preset maximum threshold, it can be determined that the current pressure-sensitive active pen is in a stuck state. Further combined with the results of the previous comparison of the real-time AD value and the zero-point AD value, it can be determined whether it is a negative stuck or a positive stuck. If the previously compared real-time AD value is greater than the zero-point AD value, it is a positive stuck; if the previously compared real-time AD value is less than the zero-point AD value, it is a negative stuck. Regardless of positive stuck or negative stuck, it is necessary to re-execute the process of determining the zero-point AD value in step 101 above. In this way, once the pressure-sensitive active pen is detected to be stuck, the zero-point AD value can be re-determined to avoid the problem of ink leakage from the pen tip.
[0074] It should be noted that if the previously compared real-time AD value is greater than the zero-point AD value, and the difference between the maximum real-time AD value and the minimum real-time AD value is greater than the preset maximum threshold, or the previously compared real-time AD value is less than the zero-point AD value, and the difference between the maximum real-time AD value and the minimum real-time AD value is greater than the preset maximum threshold, it can be determined that the pressure-sensitive active pen is not in a stuck state. In this case, it is necessary to further analyze the state of the pressure-sensitive active pen according to the specific situation to make corresponding adjustments.
[0075] Optionally, other methods can be used to determine whether the pressure-sensitive active pen is stuck, and the corresponding processing can be as follows: after continuously collecting a preset number of real-time AD values, calculate the absolute value of the difference between two adjacent real-time AD values in turn. If the absolute value of the difference between two adjacent real-time AD values is less than the preset adjacent difference threshold by the number exceeding the interference upper limit threshold, then the state of the pressure-sensitive active pen is determined to be stuck, and the process of determining the zero-point AD value is re-executed.
[0076] In implementation, similar to the previous processing, first, the size of the real-time AD value and the zero-point AD value can be compared. Then a preset number of real-time AD values are continuously collected, and the absolute value of the difference between two adjacent real-time AD values is calculated in turn. Each absolute value obtained is compared with the preset adjacent difference threshold, and the number of absolute values less than the preset adjacent difference threshold is counted. If the number is greater than the upper limit threshold of interference, it can be determined that the current pressure-sensitive active pen is in a stuck state. Further combined with the results of the previous comparison of the real-time AD value and the zero-point AD value, it can be determined whether it is a negative stuck or a positive stuck. If the previously compared real-time AD value is greater than the zero-point AD value, it is a positive stuck; if the previously compared real-time AD value is less than the zero-point AD value, it is a negative stuck. Similar to the previous text, whether it is a positive stuck or a negative stuck, it is necessary to re-execute the previous step 101 to determine the zero-point AD value.
[0077] Step 104: collecting an induced current signal, and determining whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold according to the induced current signal.
[0078] Step 105: If the distance is greater than the preset distance threshold, the process of determining the zero point AD value is re-executed.
[0079] In practice, during use, the distance between the pressure-sensitive active pen and the screen can also be determined. When the pressure-sensitive active pen is too far away from the screen, the process of determining the zero-point AD value in step 101 above is actively re-executed to correct the zero-point AD value. It can be understood that in the actual use of the pressure-sensitive active pen, there is no order between steps 102-103 and steps 104-105, and steps 104-105 can be executed first, and then steps 102-103.
[0080] An induction coil can be pre-installed on the pressure-sensitive active pen, so that the magnetic field generated by the scanning current emitted by the capacitive touch display or OC display can be sensed within a certain range from the screen, and this distance can be used as a preset distance threshold. According to the principle of electromagnetic induction, the scanning current will change continuously to generate a constantly changing magnetic field, and the magnetic field will perform a constantly changing relative movement on the induction coil. Relative to the coil, the conductor cuts the magnetic field to generate an induced current. Then, it can be determined whether the zero-point AD value needs to be re-determined based on whether the induced current is generated or not. When the induced current can be detected, it can be determined that the distance between the pressure-sensitive active pen and the screen is less than the preset distance threshold; when the induced current cannot be detected, it can be determined that the distance between the pressure-sensitive active pen and the screen is greater than the preset distance threshold. When the distance between the pressure-sensitive active pen and the screen is greater than the preset distance threshold, the method in the previous text can be referred to and the process of determining the zero-point AD value in step 101 in the previous text can be re-executed.
[0081] Through the above processing, the pressure-sensitive active pen can periodically re-determine the zero AD value when it is away from the screen, and it can also prevent users from making mistakes and deliberately pressing the pen tip away from the screen to reset the pressure-sensitive pen and then release the pen.
[0082] In the embodiment of the present application, the zero-point AD value is determined; the real-time AD value is collected, and the absolute value of the difference between the real-time AD value and the zero-point AD value is calculated; the zero-point AD value is adjusted according to the absolute value of the difference between the real-time AD value and the zero-point AD value; the induced current signal is collected, and it is determined whether the distance between the pressure-sensitive active pen and the screen is greater than the preset distance threshold according to the induced current signal; if it is greater than the preset distance threshold, the process of determining the zero-point AD value is re-executed. In this way, by adjusting the zero-point AD value through the real-time AD value, the problem of ink leakage caused by the error caused by the temperature drift of the pressure sensor itself and the structural jam can be effectively avoided, and the zero-point AD value can also be automatically updated when the distance between the pressure-sensitive active pen and the screen is too far.
[0083] Based on the same technical concept, the embodiment of the present application also provides a device for preventing ink leakage from the tip of a pressure-sensitive active pen, such as Figure 2 As shown, including:
[0084] Baseline module 201, used to determine the zero AD value;
[0085] The acquisition module 202 is used to acquire the real-time AD value and calculate the absolute value of the difference between the real-time AD value and the zero-point AD value;
[0086] An adjustment module 203, configured to adjust the zero point AD value according to the absolute value of the difference between the real-time AD value and the zero point AD value;
[0087] The distance module 204 is used to collect the induced current signal and determine whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold according to the induced current signal;
[0088] The baseline module 201 is further configured to re-execute the process of determining the zero-point AD value if the distance between the pressure-sensitive active stylus and the screen is greater than a preset distance threshold.
[0089] Optionally, the baseline module 201 is specifically used for:
[0090] Continuously collect a preset number of real-time AD values;
[0091] From the preset number of real-time AD values, a maximum value and a minimum value are deleted, and an average value of the remaining real-time AD values is calculated as the zero-point AD value.
[0092] Optionally, the adjustment module 203 is specifically configured to:
[0093] If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value;
[0094] If the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, the pressure-sensitive active pen state is determined. When the pressure-sensitive active pen state is stuck, the baseline module 201 is called to re-execute the process of determining the zero-point AD value.
[0095] Optionally, the adjustment module 203 is specifically configured to:
[0096] If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the real-time AD value is collected again, and after each collection, the zero-point AD value is adjusted by a preset adjustment value until the zero-point AD value is equal to the real-time AD value.
[0097] Optionally, the adjustment module 203 is specifically configured to:
[0098] Continuously collect a preset number of real-time AD values;
[0099] Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values;
[0100] The difference between the maximum real-time AD value and the minimum real-time AD value is calculated. If the difference is less than a preset maximum threshold, the state of the pressure-sensitive active pen is determined to be stuck, and the baseline module 201 is called to re-execute the process of determining the zero-point AD value.
[0101] Optionally, the adjustment module 203 is further configured to:
[0102] The absolute value of the difference between two adjacent real-time AD values is calculated in sequence. If the absolute value of the difference between two adjacent real-time AD values is less than the preset adjacent difference threshold by more than the interference upper limit threshold, it is determined that the state of the pressure-sensitive active pen is stuck, and the baseline module 201 is called to re-execute the process of determining the zero-point AD value.
[0103] Based on the same technical concept, an embodiment of the present application further provides a pressure-sensitive active pen, which includes the device for preventing ink leakage from the tip of the pressure-sensitive active pen as described above.
[0104] It should be noted that the device for preventing ink leakage from the tip of the pressure-sensitive active pen and the method for preventing ink leakage from the tip of the pressure-sensitive active pen provided in the above-mentioned embodiment belong to the same concept. The method for preventing ink leakage from the tip of the pressure-sensitive active pen can be implemented based on the above-mentioned device for preventing ink leakage from the tip of the pressure-sensitive active pen, which will not be repeated here.
[0105] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for preventing ink leakage from a pressure-sensitive active pen tip, characterized in that: The following steps are involved: Determine the zero AD value; Collecting a real-time AD value, and calculating an absolute value of a difference between the real-time AD value and the zero-point AD value; adjusting the zero point AD value according to the absolute value of the difference between the real-time AD value and the zero point AD value; Collecting an induced current signal, and determining whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold according to the induced current signal; If it is greater than the preset distance threshold, the process of determining the zero point AD value is executed again.
2. The method according to claim 1, characterized in that Determining the zero AD value includes: Continuously collect a preset number of real-time AD values; From the preset number of real-time AD values, a maximum value and a minimum value are deleted, and an average value of the remaining real-time AD values is calculated as the zero-point AD value.
3. The method according to claim 1, characterized in that The step of adjusting the zero point AD value according to the absolute value of the difference between the real-time AD value and the zero point AD value comprises: If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value; If the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, the state of the pressure-sensitive active pen is determined. When the state of the pressure-sensitive active pen is stuck, the process of determining the zero-point AD value is re-executed.
4. The method according to claim 3, characterized in that If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value comprises: If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the real-time AD value is collected again, and after each collection, the zero-point AD value is adjusted by a preset adjustment value until the zero-point AD value is equal to the real-time AD value.
5. The method according to claim 3, characterized in that: If the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, determining the state of the pressure-sensitive active pen, and when the state of the pressure-sensitive active pen is stuck, re-executing the process of determining the zero-point AD value, including: Continuously collect a preset number of real-time AD values; Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values; The difference between the maximum real-time AD value and the minimum real-time AD value is calculated. If the difference is less than a preset maximum threshold, it is determined that the state of the pressure-sensitive active pen is stuck, and the process of determining the zero-point AD value is re-executed.
6. The method according to claim 5, characterized in that After continuously collecting a preset number of real-time AD values, the method further includes: The absolute value of the difference between two adjacent real-time AD values is calculated in sequence. If the absolute value of the difference between two adjacent real-time AD values is less than the preset adjacent difference threshold by more than the interference upper limit threshold, the state of the pressure-sensitive active pen is determined to be stuck, and the process of determining the zero-point AD value is re-executed.
7. A device for preventing ink leakage from the tip of a pressure-sensitive active pen, characterized in that: include: Baseline module, used to determine the zero-point AD value; An acquisition module, used for acquiring a real-time AD value, and calculating an absolute value of a difference between the real-time AD value and the zero-point AD value; An adjustment module, used for adjusting the zero-point AD value according to the absolute value of the difference between the real-time AD value and the zero-point AD value; A distance module, used to collect an induction current signal and determine whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold according to the induction current signal; The baseline module is further configured to re-execute the process of determining the zero-point AD value if the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold.
8. The device according to claim 7, characterized in that The baseline module is specifically used for: Continuously collect a preset number of real-time AD values; From the preset number of real-time AD values, a maximum value and a minimum value are deleted, and an average value of the remaining real-time AD values is calculated as the zero-point AD value.
9. The device according to claim 7, characterized in that The adjustment module is specifically used for: If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, adjusting the zero-point AD value to the real-time AD value; If the absolute value of the difference between the real-time AD value and the zero-point AD value is greater than a preset threshold, the state of the pressure-sensitive active pen is determined. When the state of the pressure-sensitive active pen is stuck, the baseline module is called to re-execute the process of determining the zero-point AD value.
10. The device according to claim 9, characterized in that The adjustment module is specifically used for: If the absolute value of the difference between the real-time AD value and the zero-point AD value is less than a preset threshold, the real-time AD value is collected again, and after each collection, the zero-point AD value is adjusted by a preset adjustment value until the zero-point AD value is equal to the real-time AD value.
11. The device according to claim 9, characterized in that The adjustment module is specifically used for: Continuously collect a preset number of real-time AD values; Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values; The difference between the maximum real-time AD value and the minimum real-time AD value is calculated. If the difference is less than a preset maximum threshold, it is determined that the state of the pressure-sensitive active pen is stuck, and the baseline module is called to re-execute the process of determining the zero-point AD value.
12. The device according to claim 11, characterized in that The adjustment module is further specifically used for: The absolute value of the difference between two adjacent real-time AD values is calculated in sequence. If the absolute value of the difference between two adjacent real-time AD values is less than the preset adjacent difference threshold by more than the interference upper limit threshold, the state of the pressure-sensitive active pen is determined to be stuck, and the baseline module is called to re-execute the process of determining the zero-point AD value.
13. A pressure-sensitive active pen, characterized in that: The pressure-sensitive active pen includes a device for preventing ink leakage from the tip of the pressure-sensitive active pen as described in any one of claims 7 to 12.