[go: up one dir, main page]

CN119225547A - Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen - Google Patents

Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen Download PDF

Info

Publication number
CN119225547A
CN119225547A CN202310800738.5A CN202310800738A CN119225547A CN 119225547 A CN119225547 A CN 119225547A CN 202310800738 A CN202310800738 A CN 202310800738A CN 119225547 A CN119225547 A CN 119225547A
Authority
CN
China
Prior art keywords
value
real
time
zero
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310800738.5A
Other languages
Chinese (zh)
Inventor
赖焕弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202310800738.5A priority Critical patent/CN119225547A/en
Publication of CN119225547A publication Critical patent/CN119225547A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware

Landscapes

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

Abstract

本申请公开了一种防止压感主动笔笔尖漏墨方法、装置和压感主动笔,所述方法包括以下步骤:确定零点AD值;采集实时AD值,计算所述实时AD值与所述零点AD值之差的绝对值;根据所述实时AD值与所述零点AD值之差的绝对值,调整所述零点AD值;采集感应电流信号,根据所述感应电流信号判断所述压感主动笔与屏幕的距离是否大于预设距离阈值;如果大于预设距离阈值,则重新执行所述确定零点AD值的处理。这样,通过实时AD值对零点AD值进行调整,可以有效规避压力传感器自身的温漂以及结构卡顿带来的误差从而导致的漏墨问题,同时还能够在压感主动笔与屏幕距离过远时,自动更新零点AD值。

The present application discloses a method, device and pressure-sensitive active pen for preventing ink leakage from the tip of a pressure-sensitive active pen, the method comprising the following steps: determining a zero-point AD value; collecting a real-time AD value, calculating the absolute value of the 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, judging 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, re-executing the process of determining the zero-point AD value. 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 at the same time, the zero-point AD value can be automatically updated when the distance between the pressure-sensitive active pen and the screen is too far.

Description

Method and device for preventing ink leakage of pen point of pressure-sensitive active pen and pressure-sensitive active pen
Technical Field
The application relates to the technical field of pressure-sensitive active pens, in particular to a method and a device for preventing ink leakage of a pen point of a pressure-sensitive active pen and the pressure-sensitive active pen.
Background
Along with the wide use of intelligent flat board, the pressure sensing initiative pen used together with intelligent flat board is also becoming more popular.
The working process of the pressure-sensitive active pen is generally that (1) a pen point AD collects pressure data, (2) an MCU calculates the collected pressure value, (3) a DA outputs a pressure signal, and (4) a display device displays handwriting corresponding to the thickness according to the pressure signal.
However, when the tip of the pressure-sensitive active pen just touches or does not touch the display screen, handwriting may also appear on the screen without the user's effort, which is referred to as ink leakage of the pressure-sensitive active pen. The ink leakage at the tip AD of the pressure-sensitive active pen is generally caused by a change in the zero point AD value due to a click or interference.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the application provides a method and a device for preventing ink leakage of a nib of a pressure-sensitive active pen and the pressure-sensitive active pen. The technical scheme is as follows:
in a first aspect, a method for preventing ink leakage from a tip of a pressure-sensitive active pen is provided, including the steps of:
Determining a 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 AD value;
adjusting the zero AD value according to the absolute value of the difference between the real-time AD value and the zero AD value;
Collecting an induced current signal, and judging whether the distance between the pressure-sensitive active pen and a screen is larger than a preset distance threshold value or not according to the induced current signal;
And if the distance value is larger than the preset distance threshold value, re-executing the process of determining the zero AD value.
Further, the determining the zero AD value includes:
Continuously collecting a preset number of real-time AD values;
and deleting one maximum value and one minimum value from the preset number of real-time AD values, and calculating the average value of the residual real-time AD values to be used as a zero AD value.
Further, the 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:
if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold value, the zero AD value is adjusted to the real-time AD value;
and if the absolute value of the difference between the real-time AD value and the zero AD value is larger than a preset threshold value, determining the pressure sensing active pen state, and when the pressure sensing active pen state is a katen, re-executing the process of determining the zero AD value.
Further, if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold, adjusting the zero AD value to the real-time AD value includes:
And if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold value, acquiring the real-time AD value again, and after each acquisition, adjusting the zero AD value by a preset adjustment value until the zero AD value is equal to the real-time AD value.
Further, if the absolute value of the difference between the real-time AD value and the zero AD value is greater than a preset threshold, determining the pressure-sensitive active pen state, and when the pressure-sensitive active pen state is a click, re-executing the process of determining the zero AD value, including:
Continuously collecting a preset number of real-time AD values;
determining a maximum real-time AD value and a minimum real-time AD value in the preset number of real-time AD values;
and calculating the difference between the maximum real-time AD value and the minimum real-time AD value, if the difference is smaller than a preset maximum threshold value, determining that the pressure sensing active pen state is stuck, and re-executing the process of determining the zero AD value.
Further, after continuously acquiring the preset number of real-time AD values, the method further comprises:
And sequentially calculating absolute values of differences between two adjacent real-time AD values, if the absolute values of the differences between the two adjacent real-time AD values are smaller than the number of preset adjacent difference thresholds and exceed the interference upper limit threshold, determining that the pressure sensing active pen state is stuck, and re-executing the process of determining the zero AD value.
In a second aspect, there is provided an apparatus for preventing ink leakage from a tip of a pressure-sensitive active pen, comprising:
A baseline module for determining a zero AD value;
the acquisition module is 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 AD value;
the adjusting module is 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;
the distance module is used for collecting an induced current signal and judging whether the distance between the pressure-sensitive active pen and the screen is larger than a preset distance threshold value or not according to the induced current signal;
and the baseline module is further used for re-executing the processing for determining the zero AD value if the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold.
Further, the baseline module is specifically configured to:
Continuously collecting a preset number of real-time AD values;
and deleting one maximum value and one minimum value from the preset number of real-time AD values, and calculating the average value of the residual real-time AD values to be used as a zero AD value.
Further, the adjusting module is specifically configured to:
if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold value, the zero AD value is adjusted to the real-time AD value;
And if the absolute value of the difference between the real-time AD value and the zero AD value is larger than a preset threshold value, determining the pressure sensing active pen state, and calling the baseline module to re-execute the processing of determining the zero AD value when the pressure sensing active pen state is a katen.
Further, the adjusting module is specifically configured to:
And if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold value, acquiring the real-time AD value again, and after each acquisition, adjusting the zero AD value by a preset adjustment value until the zero AD value is equal to the real-time AD value.
Further, the adjusting module is specifically configured to:
Continuously collecting a preset number of real-time AD values;
determining a maximum real-time AD value and a minimum real-time AD value in the preset number of real-time AD values;
And calculating the difference between the maximum real-time AD value and the minimum real-time AD value, if the difference is smaller than a preset maximum threshold value, determining that the pressure sensing active pen state is stuck, and calling the baseline module to re-execute the processing of determining the zero AD value.
Further, the adjusting module is specifically further configured to:
And sequentially calculating absolute values of differences between two adjacent real-time AD values, if the absolute values of the differences between the two adjacent real-time AD values are smaller than the number of preset adjacent difference thresholds and exceed an interference upper limit threshold, determining that the pressure sensing active pen state is stuck, and calling the baseline module to re-execute the processing of determining the zero AD value.
In a third aspect, there is provided a pressure-sensitive active pen comprising a device for preventing ink leakage from the tip of the pressure-sensitive active pen as described in the second aspect above.
The technical scheme provided by the embodiment of the application has the beneficial effects that in the embodiment of the application, a zero point AD value is determined, a real-time AD value is acquired, 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, an induced current signal is acquired, whether the distance between the pressure-sensitive active pen and a screen is larger than a preset distance threshold value is judged according to the induced current signal, and if the distance between the pressure-sensitive active pen and the screen is larger than the preset distance threshold value, the processing for determining the zero point AD value is executed again. Therefore, the zero point AD value is adjusted through the real-time AD value, the problem of ink leakage caused by errors caused by temperature drift and structural clamping of the pressure sensor can be effectively avoided, and meanwhile, the zero point AD value can be automatically updated when the distance between the pressure sensing active pen and the screen is too long.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for preventing ink leakage from a tip of a pressure-sensitive active pen according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for preventing ink leakage from a nib of a pressure-sensitive active pen according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
When a user writes by using the pressure-sensitive active pen, a certain pressure is generated on the pen point, the pressure of the pen point is changed at any moment, each pressure value corresponds to handwriting with different thickness, and innumerable different pressure values and corresponding handwriting thickness degrees can form a pressure-handwriting thickness curve graph, namely, the pressure of the pressure-sensitive active pen is an abscissa, and the handwriting thickness is an ordinate pressure-handwriting thickness curve graph. The pressure-handwriting thickness can directly reflect the stroke point change of a user when writing characters, the stroke is performed, and the handwriting plumpness is determined when the user receives the strokes, so that the writing experience of a pressure-sensitive active pen is determined. The pressure-handwriting thickness graph is particularly important when handwriting and drawing operations are performed. The curve graph of pressure-handwriting thickness is the most important parameter index for measuring the quality of a pressure sensing pen.
The working process of the pressure-sensitive active pen generally comprises the steps of (1) collecting pressure data by a pen point AD, (2) calculating the collected pressure value by an MCU, (3) outputting a pressure signal by a DA, and (4) displaying handwriting corresponding to the thickness by display equipment according to the pressure signal.
When the pen tip of the pressure-sensitive active pen just touches or does not touch the display screen, the user does not exert force, and if handwriting is written on the screen, the condition is called ink leakage of the pressure-sensitive active pen. The ink leakage at the tip AD of the pressure-sensitive active pen is generally caused by a change in the zero point AD value due to a click or interference.
As can be seen from the working process of the pressure-sensitive active pen, the ink leakage phenomenon can be generated at all four nodes in the working process. In practical use, the ink leakage phenomenon of the three latter nodes is easy to eliminate and solve, and the first node, namely the node where the nib AD collects pressure data, is difficult to solve.
When the pressure-sensitive active pen is normally used, the display screen can display handwriting only when the pen point contacts the screen and pressure is applied. Normally, the note thickness percentage in the "pressure-writing thickness" graph should be 0% when no force is applied. The ink leakage is not 0%. However, in practical situations, the structure of the pressure sensor is often not particularly accurate due to the limitation of technology and cost, and the consistency of each pressure sensor is also different, so even if the same pressure sensor is used, the two pressure-sensing active pens can not necessarily obtain the same pressure-handwriting thickness graph. With the increase of the use times, the physical structure of the pressure sensor may be slightly changed, so that the pressure sensor is deformed, and therefore, the pressure sensor cannot be restored to the original position when not forced, and the ink leakage phenomenon is generated.
Based on the above, the embodiment of the application provides a method and a device for preventing ink leakage of a nib of a pressure-sensitive active pen and the pressure-sensitive active pen. In the working process of the pressure sensing active pen, real-time AD values are continuously collected, then the absolute value of the difference between the real-time AD values and the zero AD values is calculated, and then, according to whether the absolute value is larger than or smaller than or equal to a preset threshold value, how to adjust the zero AD values is judged.
The following will describe in detail a process flow for preventing ink leakage from the tip of the pressure-sensitive active pen shown in fig. 1 with reference to the specific embodiment, and the following may be included:
and 101, determining a zero AD value.
In practice, the pressure sensitive active pen needs to first determine the zero AD value when it is just started to be used. The zero point AD value is understood to be a pressure value generated by the pressure sensor when the external pressure applied to the pen tip is zero or almost zero when the pressure-sensitive active pen is not in the writing state. Through the AD value of the zero point, the deformation degree of the pressure sensor can be determined in the application process of the pressure-sensitive active pen, and then the writing force during writing is determined. In the subsequent use process, the pressure-sensitive active pen can judge the specific pressure of the pen point according to the deformation degree of the pressure sensor, and then the thickness and the length of the corresponding handwriting are determined by combining a pressure-handwriting thickness curve graph, so that the difference of the handwriting under different writing forces is shown. It will be appreciated that the zero point AD value of the pressure sensitive active pen may be preset by the manufacturer and stored in the pressure sensitive active pen when shipped, or may be determined by other means after shipment, and the present application is not limited in detail herein.
Alternatively, the zero AD value may be automatically determined after the voltage-sensing active pen is powered on, and the corresponding process may be as follows, continuously collecting a preset number of real-time AD values, deleting one maximum value and one minimum value from the preset number of real-time AD values, and calculating an average value of the remaining real-time AD values as the zero AD value.
In implementation, after the pressure sensing active pen is powered on (a new battery is installed or replaced), the pressure sensing active pen can automatically perform processes such as initialization, and then a preset number of real-time AD values are continuously collected immediately according to a preset frequency (such as1 frame). Since unexpected factors may cause abnormality (abrupt increase or abrupt decrease) of the real-time AD value, one of the maximum value and the minimum value may be deleted, and then the average value of the remaining real-time AD values is calculated again, with the result being taken as the zero-point AD value. After the zero AD value is obtained, the pressure-sensitive active pen can be stored locally, and can be taken at any time when the zero AD value is needed to be used in the subsequent use process of the pressure-sensitive active pen. In this embodiment, real-time AD values of 10 consecutive frames immediately after power-up, for example, 8, 9, 10, 11, 10, 11, 9, 11, and then deleting one maximum value 11 and one minimum value 8, calculating the average value of the real-time AD values of 8 frames of the remaining 9, 10, 11, 10, 11, 9, and 10 to be 10, and setting the zero point AD value to be 10.
And 102, collecting a real-time AD value, and calculating the absolute value of the difference between the real-time AD value and the zero AD value.
And 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.
In the implementation, the pressure-sensitive active pen collects real-time AD values at any time in the working process, then calculates the difference between the real-time AD values and the zero AD values obtained in the previous step, and takes the absolute value of the obtained difference. And then determining whether the zero AD value and a specific adjustment method need to be adjusted according to the obtained absolute value.
Alternatively, the absolute value of the difference between the real-time AD value and the zero AD value may be compared with a preset threshold, and the zero AD value may be correspondingly adjusted according to different results, where the corresponding process may be that if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than the preset threshold, the zero AD value is adjusted to the real-time AD value, and if the absolute value of the difference between the real-time AD value and the zero AD value is greater than the preset threshold, the pressure-sensitive active pen state is determined, and when the pressure-sensitive active pen state is a katen, the process of determining the zero AD value is re-executed.
In practice, the preset threshold may be preset in the pressure sensitive active pen. When the pressure sensing active pen is needed, a preset threshold value can be directly obtained. At this time, the preset threshold may 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 is not particularly limited herein, and for example, writing data of the current batch of pressure-sensitive active pens when used is manually collected, the writing data includes a pressure value generated by a pressure sensor, and then the preset threshold is calculated and counted based on the pressure value. For example, based on the pressure value of the pressure sensor and the reference pressure value (i.e. the zero point AD value) of the pressure sensor in the writing process of each pressure-sensitive active pen, determining the corresponding AD value when each pressure-sensitive active pen just emits ink, and then counting each pressure variation to obtain the AD value which can be the most reflected just emits ink and is used as a preset threshold value. The statistical method is not limited in the application. It can be understood that the structures, parameters, and used pressure sensors of the same batch of pressure sensitive active pens are the same.
After the absolute value of the difference between the real-time AD value and the zero AD value is calculated, the magnitude of the preset threshold value and the absolute value are compared. When the absolute value is smaller 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 larger than the preset threshold, whether the pressure sensing active pen is blocked currently can be further judged, if the pressure sensing active pen is blocked, the process of determining the zero point AD value in the step 101 is executed again, and when the absolute value is equal to the preset threshold, the zero point AD value can be not adjusted.
Optionally, if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold, the process of adjusting the zero AD value to the real-time AD value may specifically be that if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than the preset threshold, the real-time AD value is collected again, and after each collection, the zero AD value is adjusted by a preset adjustment value until the zero AD value is equal to the real-time AD value.
In implementation, after the absolute value of the difference between the real-time AD value and the zero AD value is smaller than the preset threshold value after comparison, the pressure sensing active pen can start to adjust the zero AD value. Specifically, the pressure-sensitive active pen can continuously collect real-time AD values according to a preset frequency (e.g., 1 frame), after the real-time AD values are collected, the zero-point AD values are close to the real-time AD values by preset adjustment values each time until the real-time AD values obtained after a certain collection are equal to the zero-point AD values after adjustment, adjustment of the zero-point AD values is stopped, and the zero-point AD values at the moment are used as the latest zero-point AD values.
For example, the preset threshold of the pressure-sensitive active pen may be 3, and the zero-point AD value is 10 according to the foregoing, and 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 smaller than the preset threshold 3. If the real-time AD value is 8, it can be determined that the absolute value of the difference between the real-time AD value and the zero AD value is smaller than the preset threshold (|8-10|= 2<3), the pressure-sensitive active pen continues to acquire the real-time AD value (assuming still 8), then adjusts the zero AD value by the preset adjustment value (1 AD value), 10-1=9, and obtains a new zero AD value which is not equal to the real-time AD value, and therefore, the pressure-sensitive active pen continues to acquire the real-time AD value (assuming still 8), adjusts the new zero AD value by the preset adjustment value (1 AD value), and obtains a new zero AD value which is 8, and at this time, the pressure-sensitive active pen uses 8 as the zero AD value and stops the adjustment processing of the zero 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 may be specifically set according to actual needs, and the data adopted in this embodiment is only exemplary, and the present application is not limited herein.
Optionally, determining the state of the pressure sensing active pen, and when the state of the pressure sensing active pen is a click, re-executing the process of determining the zero point AD value, wherein the process comprises continuously collecting a preset number of real-time AD values, determining a maximum real-time AD value and a minimum real-time AD value in the preset number of real-time AD values, calculating a difference between the maximum real-time AD value and the minimum real-time AD value, and if the difference is smaller than a preset maximum threshold, determining that the state of the pressure sensing active pen is the click, and re-executing the process of determining the zero point AD value.
In implementation, after the absolute value of the difference between the real-time AD value and the zero AD value is greater than the preset threshold value after the comparison, the magnitudes of the real-time AD value and the zero AD value may be compared first. And then further judging whether the pressure sensing active pen is currently in a clamping state. Specifically, a preset number of real-time AD values can be continuously collected, and the maximum real-time AD value and the minimum real-time AD value in the preset number of real-time AD values can be screened out. And calculating the difference value between the maximum real-time AD value and the minimum real-time AD value. And comparing the obtained difference value with a preset maximum threshold value, and judging that the current pressure-sensitive active pen is in a stuck state if the difference value is smaller than the preset maximum threshold value. Further combining the previous comparison of the real-time AD value and the zero AD value, it can be determined whether the positive or negative jam occurs. If the previously compared real-time AD value is greater than the zero AD value, positive-going jamming is performed, and if the previously compared real-time AD value is less than the zero AD value, negative-going jamming is performed. Whether positive or negative stuck, the process of determining the zero point AD value of step 101 above needs to be re-performed. Therefore, once the pressure-sensitive active pen is detected to be blocked, the zero AD value can be determined again, and the problem of ink leakage of the pen point is avoided.
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 threshold, or if 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 threshold, it may be determined that the pressure sensing is not actively in the stuck state. In this case, the state of the pressure-sensitive active pen needs to be further analyzed according to the specific situation to make corresponding adjustment.
Alternatively, whether the pressure sensing active pen is stuck or not can be judged by other methods, and the corresponding processing can be as follows, after continuously collecting a preset number of real-time AD values, sequentially calculating the absolute value of the difference between two adjacent real-time AD values, if the absolute value of the difference between the two adjacent real-time AD values is smaller than the number of the preset adjacent difference threshold and exceeds the interference upper limit threshold, determining that the pressure sensing active pen is stuck, and re-executing the processing for determining the zero AD value.
In practice, the magnitudes of the real-time AD value and the zero-point AD value may be compared first, similar to the previous process. And continuously collecting a preset number of real-time AD values, and sequentially calculating the absolute value of the difference between two adjacent real-time AD values. And comparing each obtained absolute value with a preset adjacent difference threshold value, and counting the number of absolute values smaller than the preset adjacent difference threshold value. If the number is greater than the interference upper threshold, the current pressure sensing active pen can be judged to be in a stuck state. Further combining the previous comparison of the real-time AD value and the zero AD value, it can be determined whether the positive or negative jam occurs. If the previously compared real-time AD value is greater than the zero AD value, positive-going jamming is performed, and if the previously compared real-time AD value is less than the zero AD value, negative-going jamming is performed. Similar to the foregoing, whether positive or negative stuck, the process of determining the zero point AD value of the foregoing step 101 needs to be re-performed.
And 104, collecting an induced current signal, and judging 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.
And 105, if the distance value is larger than the preset distance threshold value, re-executing the process of determining the zero AD value.
In implementation, during the use process, the distance between the screen of the pressure-sensitive active pen can be determined, and when the distance between the pressure-sensitive active pen and the screen is too far, the process of determining the zero point AD value in the previous step 101 is actively re-executed to correct the zero point AD value. It will be appreciated that during the actual use of the pressure sensitive active pen, there is no sequence between steps 102-103 and steps 104-105, or steps 104-105 may be performed first and then steps 102-103 may be performed.
An induction coil can be arranged on the pressure-sensitive active pen in advance, so that a magnetic field generated by scanning current emitted by the capacitive touch display screen or the OC display can be sensed within a certain range from the screen, and the distance can be used as a preset distance threshold. According to the principle of electromagnetic induction, the scanning current is changed continuously to generate a magnetic field which changes continuously and moves the induction coil relatively. The coil is subjected to a cutting motion of the conductor with respect to the magnetic field, thereby generating an induced current. Further, whether or not the zero point AD value needs to be newly determined can be determined based on whether or not the induced current is generated. When the induced current can be detected, the distance between the pressure-sensitive active pen and the screen can be judged to be smaller than a preset distance threshold value, and when the induced current cannot be detected, the distance between the pressure-sensitive active pen and the screen can be judged to be larger than the preset distance threshold value. When the distance between the pressure-sensitive active pen and the screen is greater than the preset distance threshold, the process of determining the zero point AD value in the previous step 101 may be re-performed with reference to the previous method.
Through the processing, the zero AD value can be determined again at regular time when the pressure-sensitive active pen is far away from the screen, misoperation of a user can be prevented, the situation that the user deliberately presses the pen point to be far away from the screen and releases the pen after the pressure-sensitive pen is reset is prevented.
In the embodiment of the application, a zero point AD value is determined, a real-time AD value is acquired, 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, an induced current signal is acquired, whether the distance between the pressure sensing active pen and a screen is larger than a preset distance threshold value is judged according to the induced current signal, and if the distance between the pressure sensing active pen and the screen is larger than the preset distance threshold value, the zero point AD value determining process is executed again. Therefore, the zero point AD value is adjusted through the real-time AD value, the problem of ink leakage caused by errors caused by temperature drift and structural clamping of the pressure sensor can be effectively avoided, and meanwhile, the zero point AD value can be automatically updated when the distance between the pressure sensing active pen and the screen is too long.
Based on the same technical concept, the embodiment of the application also provides a device for preventing ink leakage of the nib of the pressure-sensitive active pen, as shown in fig. 2, comprising:
a baseline module 201 for determining a zero AD value;
The acquisition module 202 is configured to acquire a real-time AD value, and calculate an absolute value of a difference between the real-time AD value and the zero AD value;
An adjustment module 203, configured to adjust the zero point AD value according to an absolute value of a difference between the real-time AD value and the zero point AD value;
The distance module 204 is used for collecting an induced current signal, and judging whether the distance between the pressure-sensitive active pen and the screen is greater than a preset distance threshold value according to the induced current signal;
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 pen and the screen is greater than a preset distance threshold.
Optionally, the baseline module 201 is specifically configured to:
Continuously collecting a preset number of real-time AD values;
and deleting one maximum value and one minimum value from the preset number of real-time AD values, and calculating the average value of the residual real-time AD values to be used as a zero AD value.
Optionally, the adjusting module 203 is specifically configured to:
if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold value, the zero AD value is adjusted to the real-time AD value;
And if the absolute value of the difference between the real-time AD value and the zero AD value is larger than a preset threshold value, determining the pressure sensing active pen state, and calling the baseline module 201 to re-execute the process of determining the zero AD value when the pressure sensing active pen state is a katen.
Optionally, the adjusting module 203 is specifically configured to:
And if the absolute value of the difference between the real-time AD value and the zero AD value is smaller than a preset threshold value, acquiring the real-time AD value again, and after each acquisition, adjusting the zero AD value by a preset adjustment value until the zero AD value is equal to the real-time AD value.
Optionally, the adjusting module 203 is specifically configured to:
Continuously collecting a preset number of real-time AD values;
determining a maximum real-time AD value and a minimum real-time AD value in the preset number of real-time AD values;
and calculating the difference between the maximum real-time AD value and the minimum real-time AD value, if the difference is smaller than a preset maximum threshold value, determining that the pressure sensing active pen state is a stuck state, and calling the baseline module 201 to re-execute the process of determining the zero AD value.
Optionally, the adjusting module 203 is specifically further configured to:
And sequentially calculating the absolute value of the difference between the two adjacent real-time AD values, if the absolute value of the difference between the two adjacent real-time AD values is smaller than the number of the preset adjacent difference threshold and exceeds the interference upper limit threshold, determining that the pressure sensing active pen state is stuck, and calling the baseline module 201 to re-execute the process of determining the zero AD value.
Based on the same technical conception, the embodiment of the application also provides a pressure-sensitive active pen, which comprises the device for preventing ink leakage of the nib of the pressure-sensitive active pen.
It should be noted that, the embodiments of the device for preventing ink leakage from the pen tip of the pressure-sensitive active pen and the method for preventing ink leakage from the pen tip of the pressure-sensitive active pen provided in the foregoing embodiments belong to the same concept, and the method for preventing ink leakage from the pen tip of the pressure-sensitive active pen may be implemented based on the device for preventing ink leakage from the pen tip of the pressure-sensitive active pen, which is not described herein.
The foregoing description of the preferred embodiments of the application is not intended to limit the application to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the application are intended to be included within the scope of the application.

Claims (13)

1.一种防止压感主动笔笔尖漏墨的方法,其特征在于,包括以下步骤:1. A method for preventing ink leakage from a pressure-sensitive active pen tip, characterized in that it comprises the following steps: 确定零点AD值;Determine the zero AD value; 采集实时AD值,计算所述实时AD值与所述零点AD值之差的绝对值;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; 根据所述实时AD值与所述零点AD值之差的绝对值,调整所述零点AD值;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; 如果大于预设距离阈值,则重新执行所述确定零点AD值的处理。If it is greater than the preset distance threshold, the process of determining the zero point AD value is executed again. 2.根据权利要求1所述的方法,其特征在于,所述确定零点AD值,包括:2. The method according to claim 1, characterized in that the determining of the zero AD value comprises: 连续采集预设数量个实时AD值;Continuously collect a preset number of real-time AD values; 从所述预设数量个实时AD值中,删除其中的一个最大值和一个最小值,计算剩余实时AD值的平均值,作为零点AD值。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.根据权利要求1所述的方法,其特征在于,所述根据所述实时AD值与所述零点AD值之差的绝对值,调整所述零点AD值,包括: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: 如果所述实时AD值与所述零点AD值之差的绝对值小于预设阈值,则调整所述零点AD值至所述实时AD值;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; 如果所述实时AD值与所述零点AD值之差的绝对值大于预设阈值,则确定所述压感主动笔状态,当所述压感主动笔状态为卡顿时,重新执行所述确定零点AD值的处理。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.根据权利要求3所述的方法,其特征在于,所述如果所述实时AD值与所述零点AD值之差的绝对值小于预设阈值,则调整所述零点AD值至所述实时AD值,包括: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: 如果所述实时AD值与所述零点AD值之差的绝对值小于预设阈值,则再次采集实时AD值,并在每次采集后,都以预设调整值调整零点AD值,直至所述零点AD值等于实时AD值。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.根据权利要求3所述的方法,其特征在于,所述如果所述实时AD值与所述零点AD值之差的绝对值大于预设阈值,则确定所述压感主动笔状态,当所述压感主动笔状态为卡顿时,重新执行所述确定零点AD值的处理,包括: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, comprising: 连续采集预设数量个实时AD值;Continuously collect a preset number of real-time AD values; 确定所述预设数量个实时AD值中的最大实时AD值和最小实时AD值;Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values; 计算所述最大实时AD值与所述最小实时AD值之差,如果小于预设最值阈值,则确定所述压感主动笔状态为卡顿,并重新执行所述确定零点AD值的处理。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.根据权利要求5所述的方法,其特征在于,在连续采集预设数量个实时AD值之后,所述方法还包括:6. The method according to claim 5, characterized in that after continuously collecting a preset number of real-time AD values, the method further comprises: 依次计算相邻两个实时AD值之差的绝对值,如果相邻两个实时AD值之差的绝对值小于预设邻差阈值的数量超过干扰上限阈值,则确定所述压感主动笔状态为卡顿,并重新执行所述确定零点AD值的处理。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.一种防止压感主动笔笔尖漏墨的装置,其特征在于,包括:7. A device for preventing ink leakage from the tip of a pressure-sensitive active pen, characterized in that it comprises: 基线模块,用于确定零点AD值;Baseline module, used to determine the zero-point AD value; 采集模块,用于采集实时AD值,计算所述实时AD值与所述零点AD值之差的绝对值;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; 调整模块,用于根据所述实时AD值与所述零点AD值之差的绝对值,调整所述零点AD值;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; 所述基线模块,还用于如果所述压感主动笔与屏幕的距离大于预设距离阈值,则重新执行所述确定零点AD值的处理。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.根据权利要求7所述的装置,其特征在于,所述基线模块,具体用于:8. The device according to claim 7, characterized in that the baseline module is specifically used to: 连续采集预设数量个实时AD值;Continuously collect a preset number of real-time AD values; 从所述预设数量个实时AD值中,删除其中的一个最大值和一个最小值,计算剩余实时AD值的平均值,作为零点AD值。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.根据权利要求7所述的装置,其特征在于,所述调整模块,具体用于:9. The device according to claim 7, characterized in that the adjustment module is specifically used to: 如果所述实时AD值与所述零点AD值之差的绝对值小于预设阈值,则调整所述零点AD值至所述实时AD值;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; 如果所述实时AD值与所述零点AD值之差的绝对值大于预设阈值,则确定所述压感主动笔状态,当所述压感主动笔状态为卡顿时,调用所述基线模块重新执行所述确定零点AD值的处理。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.根据权利要求9所述的装置,其特征在于,所述调整模块,具体用于:10. The device according to claim 9, characterized in that the adjustment module is specifically used to: 如果所述实时AD值与所述零点AD值之差的绝对值小于预设阈值,则再次采集实时AD值,并在每次采集后,都以预设调整值调整零点AD值,直至所述零点AD值等于实时AD值。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.根据权利要求9所述的装置,其特征在于,所述调整模块,具体用于:11. The device according to claim 9, characterized in that the adjustment module is specifically used to: 连续采集预设数量个实时AD值;Continuously collect a preset number of real-time AD values; 确定所述预设数量个实时AD值中的最大实时AD值和最小实时AD值;Determine a maximum real-time AD value and a minimum real-time AD value among the preset number of real-time AD values; 计算所述最大实时AD值与所述最小实时AD值之差,如果小于预设最值阈值,则确定所述压感主动笔状态为卡顿,并调用所述基线模块重新执行所述确定零点AD值的处理。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.根据权利要求11所述的装置,其特征在于,所述调整模块,具体还用于:12. The device according to claim 11, characterized in that the adjustment module is further used for: 依次计算相邻两个实时AD值之差的绝对值,如果相邻两个实时AD值之差的绝对值小于预设邻差阈值的数量超过干扰上限阈值,则确定所述压感主动笔状态为卡顿,并调用所述基线模块重新执行所述确定零点AD值的处理。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.一种压感主动笔,其特征在于,所述压感主动笔包括如权利要求7-12任一项所述的防止压感主动笔笔尖漏墨的装置。13. A pressure-sensitive active pen, characterized in that the pressure-sensitive active pen comprises 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.
CN202310800738.5A 2023-06-30 2023-06-30 Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen Pending CN119225547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310800738.5A CN119225547A (en) 2023-06-30 2023-06-30 Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310800738.5A CN119225547A (en) 2023-06-30 2023-06-30 Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen

Publications (1)

Publication Number Publication Date
CN119225547A true CN119225547A (en) 2024-12-31

Family

ID=93945803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310800738.5A Pending CN119225547A (en) 2023-06-30 2023-06-30 Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen

Country Status (1)

Country Link
CN (1) CN119225547A (en)

Similar Documents

Publication Publication Date Title
US10234992B2 (en) Force-sensitive touch sensor compensation
TWI653552B (en) Method, touch sensitive electronics, and system for adjusting pressure signal parameter of stylus
US20230359297A1 (en) Touch sensing method and apparatus
TWI591517B (en) Method for dynamically detecting threshold value of displaying stylus stroke on touch panel
CN111189564B (en) Pressure measuring device
US9857890B2 (en) Information processing method and electronic apparatus
CN119225547A (en) Method and device for preventing ink leakage from the tip of a pressure-sensitive active pen, and pressure-sensitive active pen
US9152270B2 (en) Methods and systems for improving touch sensitivity of touch-based devices
CN112621762B (en) Touch perception acquisition system with temperature compensation function and method thereof
CN112286386B (en) Touch screen point stabilization processing method, system, device and medium
CN110337629A (en) The detection method of the environment temperature of touch detection circuit, electronic equipment and touch screen
EP1630652B1 (en) Coordinate positioning device with anti-noise method
US20220283702A1 (en) Touch input device, touch input method and recording medium recording touch input program
US12092497B2 (en) Method for updating capacitance reference, chip, and capacitance detection apparatus
CN107957804A (en) Three-dimensional touch device
CN116295959A (en) Force sensing method, force sensing system and force sensing calibration method
JP6221527B2 (en) Electronic equipment and coordinate input program
JPH0764696A (en) Method and device for eliminating erroneously measured data of coordinate detection device
TW201913346A (en) Capacitance value detecting method of touch device
WO2019084882A1 (en) Signal processing method for touch device, touch device, and storage medium
JPH09190271A (en) Pen-type input device
WO2018235954A1 (en) Input device for electronic apparatus
CN119127006B (en) Multi-scenario matching control method, system, device and medium for touch screen sensitivity
CN113504840B (en) Touch data processing method and device and touch screen
JPWO2018235954A1 (en) Electronic device input device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination