Pen
The pen detection device addresses ink leak and calibration issues by updating pen pressure thresholds based on proximity detection, ensuring accurate event detection and timely calibration, enhancing user experience and battery efficiency.
Patent Information
- Application Number
- JP2024194269
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2038-01-29
AI Technical Summary
Existing pen detection technologies face issues such as ink leak phenomena due to hysteresis in pen pressure detection sensors, incomplete calibration between pen-up and pen-down events, and repetitive calibration during pen-up states, which affect the accuracy of pen pressure judgment thresholds and battery life.
A method for a pen detection device that updates the pen pressure judgment threshold based on the comparison of the pen pressure level with a predetermined threshold, using proximity detection to ensure timely calibration and proper generation of pen-down and pen-up events, regardless of sensor hysteresis.
The method reduces ink leak phenomena, ensures accurate event detection, and allows for timely calibration of the pen pressure judgment threshold, improving user experience and battery efficiency.
Smart Images

Figure 2025014065000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a method implemented by a pen or a pen detection device for detecting said pen. [Background technology]
[0002] There is known an electronic device that enables pen input by detecting the position of a pen on a panel surface. In this type of electronic device, the detection of the pen is performed based on a pen pressure level indicating the level of pen pressure detected by a pen pressure detection sensor built into the pen. Specifically, the pen transmits a burst signal for position detection and a data signal including the detection result of the pen pressure detection sensor to a pen detection device in the electronic device. The pen detection device detects the position of the pen on the panel surface based on the burst signal, while acquiring a pen pressure level from the received detection result of the pen pressure detection sensor and performing a threshold judgment thereof. When the pen pressure level exceeds a predetermined threshold (hereinafter referred to as a "pen pressure judgment threshold"), the pen detection device detects that the pen has come into contact with the panel surface and generates a pen down event. When the pen pressure level falls below the pen pressure judgment threshold, the pen detection device detects that the pen has left the panel surface and generates a pen up event. The pen detection device outputs the detected pen position, various data (including the pen pressure level) received by the data signal, and data indicating the occurrence of various events to a host processor in the electronic device each time.
[0003] The host processor is configured to be able to execute a drawing application. This drawing application performs processing to draw a series of positions (pen trajectories) detected between the occurrence of a pen-down event and the occurrence of a pen-up event, with a thickness according to the pen pressure level corresponding to each position. Therefore, if the pen pressure determination threshold is not an appropriate value, and a pen-down event does not occur unless further pressure is applied even though the pen is already in contact with the panel surface, or conversely, a pen-up event does not occur even though the pen is already off the panel surface, drawing processing different from the contact state is performed, which adversely affects the user's usability.
[0004] Patent Document 1 discloses an invention for calibrating a writing pressure judgment threshold. In this invention, a reference level Vzero of the writing pressure level is derived by statistically processing writing pressure levels that are smaller than the current writing pressure judgment threshold and are shifting within a predetermined deviation, and a value Vzero+Voffset obtained by adding a predetermined offset Voffset to this reference level Vzero is used as a new writing pressure judgment threshold. This makes it possible to suppress variations in the occurrence timing of pen-down events caused by variations in the output level of the writing pressure detection sensor for each pen or over time. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] US Patent Application Publication No. 2017-0131817 Summary of the Invention [Problem to be solved by the invention]
[0006] However, there are some problems with the writing pressure determination threshold that are not solved by the technology of Patent Document 1. These will be explained in detail below.
[0007] The first problem is the occurrence of ink leakage. The pen pressure detection sensor has hysteresis (structural hysteresis caused by different frictional forces occurring when loaded and unloaded, such as when the core body pressed into the housing under load gets caught on the housing when unloaded, or physical hysteresis of the material used in the pen pressure detection sensor (e.g., elastic body used in variable capacitance capacitors, etc.). In the following, these hysteresis are collectively referred to as "hysteresis"), and even if force is applied to the pen tip for a while and then the force is removed, the output level does not immediately return to the original level, but returns slowly over a certain period of time. Due to the nature of the pen pressure detection sensor, the pen pressure level may continue to exceed the pen pressure judgment threshold even after the pen is lifted, and drawing by the drawing application may continue for a while, in which case the user may feel as if ink is leaking. In the following, this phenomenon is referred to as "ink leakage phenomenon."
[0008] The second problem is that even if the pen pressure determination threshold is calibrated by the method described in Patent Document 1, the calibration may not be completed between the pen up and the next pen down. In order to calibrate the pen pressure determination threshold by the method described in Patent Document 1, it is necessary to obtain samples of the pen pressure level for a predetermined time in the pen up state. However, when the user operates the pen quickly, a sufficient number of samples may not be obtained between the pen up and the next pen down. In addition, as a result of the pen tip getting caught on the pen housing, the pen pressure level in the pen up state may fluctuate beyond the above-mentioned predetermined deviation, and in such a case, the pen pressure level sample required for calibration may not be obtained. As a result of these, the calibration may not be completed between the pen up and the next pen down.
[0009] The third problem is that calibration of the pen pressure determination threshold is not performed in a timely manner. Normally, it is considered that calibration needs to be performed once each time the pen is down, but in the technology of Patent Document 1, calibration may be repeatedly performed inside the pen while the pen is up. Such repeated processing may reduce the battery life of the pen.
[0010] It is therefore an object of the present invention to provide a method implemented by a pen or a pen detection device for detecting said pen, which is able to overcome the problems mentioned above. [Means for solving the problem]
[0011] A method executed by a pen according to a first aspect of the present invention or a pen detection device for detecting the pen includes the steps of acquiring a writing pressure level corresponding to a force applied to the tip of the pen, generating a pen-down event or a pen-up event based on a comparison result between the writing pressure level and a writing pressure judgment threshold, acquiring a proximity indicating a positional relationship between the pen and the pen detection device from a proximity detection means provided in either the pen or the pen detection device, and updating the writing pressure judgment threshold based on the writing pressure level when the proximity indicates that the positional relationship between the pen and the pen detection device satisfies a predetermined relationship.
[0012] A method performed by a pen according to a second aspect of the present invention or a pen detection device for detecting the pen includes the steps of acquiring a pen pressure level corresponding to a force applied to the tip of the pen from a pen pressure detection sensor provided on the pen, generating a pen down event based on a comparison result between the pen pressure level and a first threshold, and generating a pen up event based on a comparison result between the pen pressure level and a second threshold different from the first threshold.
[0013] A method executed by a pen or a pen detection device for detecting the pen according to a third aspect of the present invention includes a step of acquiring a writing pressure level corresponding to the force applied to the tip of the pen, a pen down event generating step of generating a pen down event based on a comparison result between the writing pressure level and a writing pressure judgment threshold, and a first updating step of updating the writing pressure judgment threshold using the occurrence of the pen down event as a trigger, wherein the pen down event generating step generates a (k+1)th pen down event based on the comparison result between the writing pressure level and the writing pressure judgment threshold after being updated by the first updating step, using the occurrence of the kth pen down event as a trigger. Effect of the Invention
[0014] According to the first aspect of the present invention, since the writing pressure determination threshold can be updated based on one writing pressure level acquired at an appropriate time (not based on statistics), the possibility that calibration will not be completed between the pen-up and the next pen-down can be reduced. Also, when the proximity acquired from the proximity detection means indicates that the positional relationship between the pen and the pen detection device satisfies a predetermined relationship, the writing pressure determination threshold can be updated immediately, thereby reducing the ink leakage phenomenon.
[0015] According to the second aspect of the present invention, it is possible to appropriately generate pen-down events and pen-up events regardless of the hysteresis of the pen pressure detection sensor, making it possible to quickly resolve the ink leakage phenomenon.
[0016] According to the third aspect of the present invention, since the writing pressure determination threshold can be updated only once for each pen-down, it becomes possible to timely perform calibration of the writing pressure determination threshold. Also, even when time-consuming calibration such as the calibration described in Patent Document 1 cannot be performed, such as when the user operates the pen quickly, it becomes possible to update the writing pressure determination threshold. [Brief description of the drawings]
[0017] [Figure 1] This is a diagram showing the configuration of the position detection system 1 according to the first embodiment of the present invention. [Diagram 2] This is a schematic block diagram showing the functional blocks of the pen pressure detection unit 22 and the signal processing unit 24 shown in FIG. 1. [Diagram 3] This is a diagram showing the relationship between the relative positional relationship between the pen 2 and the pen detection device 34 and the proximity S. [Figure 4] This is a diagram showing the relationship between the pen pressure level raw_P and the normalized pen pressure level mod_P. [Diagram 5] This is a diagram for explaining the pen pressure determination threshold T. [Figure 6] This is a diagram for explaining the first problem of the present invention. [Figure 7] This is a diagram for explaining the second problem of the present invention. [Figure 8] This is a diagram showing the operation of the event determination / threshold update unit 43 shown in FIG. 2. [Figure 9] This is a flowchart showing the processing flow of the processing performed by the event determination / threshold update unit 43 shown in FIG. 2. [Figure 10] This is a diagram showing the operation of the event determination / threshold update unit 43 according to the second embodiment of the present invention. [Figure 11] This is a diagram schematically showing the change in the pen pressure level raw_P for each case where the value of the peak value PEAK is P1 and P2 (>P1). [Figure 12] This is a diagram schematically showing the change in the pen pressure level raw_P for each case where the time when the pen 2 is in the pen-down state is t2 - t1 and t2 - t0 (t0 < t1). [Figure 13] This is a flowchart showing the processing flow of the processing performed by the event determination / threshold update unit 43 according to the second embodiment of the present invention. [Figure 14] This is a flowchart showing the processing flow of the processing performed by the event determination / threshold update unit 43 according to the second embodiment of the present invention. [Figure 15]FIG. 13 is a diagram illustrating an operation of an event determination and threshold update unit 43 according to the third embodiment of the present invention. [Figure 16] FIG. 13 is a flowchart showing the process flow of a process performed by an event determination and threshold update unit 43 according to the third embodiment of the present invention. [Figure 17] FIG. 13 is a flowchart showing the process flow of a process performed by an event determination and threshold update unit 43 according to the third embodiment of the present invention. [Figure 18] FIG. 13 is a flowchart showing the process flow of a process performed by an event determination and threshold update unit 43 according to a modified example of the third embodiment of the present invention. [Figure 19] FIG. 20 is a flowchart showing details of the calibration process executed in step S51 of FIG. 18. [Figure 20] FIG. 13 is a diagram illustrating an operation of the event determination and threshold update unit 43 according to the modified example of the third embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
[0019] FIG. 1 is a diagram showing the configuration of a position detection system 1 according to a first embodiment of the present invention. As shown in the figure, the position detection system 1 is configured to include a pen 2 and an electronic device 3. Of these, the electronic device 3 is, for example, a tablet-type computer, and is configured to include a display device 30, for example, a liquid crystal display or an organic EL display, a sensor 31 arranged on the back (or front) of the display device 30, a sensor controller 32 connected to the sensor 31, and a host processor 33 that controls each part of the electronic device 3 including these. Of these, the sensor 31 and the sensor controller 32 constitute a pen detection device 34 for detecting the pen 2. The display surface of the display device 30 is a flat glass surface, and constitutes a panel surface 3t on which the user slides the pen 2.
[0020] The sensor controller 32 and the pen 2 are configured to be able to transmit and receive signals to and from each other via the sensor 31. Hereinafter, a signal transmitted from the pen 2 to the sensor controller 32 is referred to as a downlink signal DS, and a signal transmitted from the sensor controller 32 to the pen 2 is referred to as an uplink signal US. The downlink signal DS includes a burst signal for causing the sensor controller 32 to detect the position of the pen 2, and a data signal obtained by modulating various data such as a pen ID given to the pen 2, a writing pressure level detected by a writing pressure detection unit 22 described later, and data indicating an on / off state of a switch 23 described later. On the other hand, the uplink signal US includes a command signal indicating an instruction from the sensor controller 32 to the pen 2.
[0021] A user performs pen input to the electronic device 3 by moving the pen 2 with the pen tip in contact with the panel surface 3t. The dashed arrows C1 to C5 in Fig. 1 indicate a typical cycle in which a user operates the pen 2. Furthermore, the sensing range SR shown in Fig. 1 indicates a range in which either the pen 2 or the sensor controller 32 can detect the other by the pen 2 receiving an uplink signal US transmitted by the sensor controller 32, or by the sensor controller 32 receiving a downlink signal DS transmitted by the pen 2.
[0022] When a user uses the pen 2 to draw a line on the panel surface 3t, the user moves the pen 2 from outside the sensing range SR into the sensing range SR (pen down operation, C1 and C2 in FIG. 1), moves the pen 2 with the pen tip in contact with the panel surface 3t (pen move operation, C3 in FIG. 1), and then moves the pen 2 from inside the sensing range SR to outside the sensing range SR (pen up operation, C4 and C5 in FIG. 1), repeating a series of cycles. While the pen 2 is within the sensing range SR, the sensor controller 32 detects the position of the pen 2 on the panel surface 3t by receiving a downlink signal DS via the sensor 31, and receives various data transmitted by the pen 2. Then, based on the writing pressure level included in the received data, the sensor controller 32 generates a pen down event and a pen up event as appropriate. The sensor controller 32 outputs the detected position, the received various data, and data indicating the occurrence of an event to the host processor 33 each time. The host processor 33 performs rendering of the line drawing based on the series of positions supplied between the pen down event and the pen up event. This enables the user to input a desired figure into the electronic device 3.
[0023] As shown in FIG. 1, the pen 2 has a core body 20, an electrode 21, a writing pressure detection unit 22, a switch 23, a signal processing unit 24, and a power source 25.
[0024] The core body 20 is a rod-shaped member arranged so that its longitudinal direction coincides with the pen axis direction of the pen 2, and constitutes the pen tip of the pen 2. A conductive material is applied to the surface of the tip of the core body 20, forming an electrode 21. The rear end of the core body 20 abuts against the writing pressure detection unit 22. The writing pressure detection unit 22 is a sensor (writing pressure detection sensor) that detects a writing pressure level corresponding to the pressure applied to the tip of the core body 20 (writing pressure applied to the core body 20) when the pen tip of the pen 2 is pressed against the panel surface 3t of the sensor controller 32, etc., and is constituted, for example, by a variable capacitance module whose capacitance changes according to the writing pressure.
[0025] The electrode 21 is a conductor provided near the core body 20, and is electrically connected to the signal processing unit 24 by a wiring. When the pen 2 transmits a downlink signal DS to the sensor controller 32, the downlink signal DS is supplied from the signal processing unit 24 to the electrode 21, and in response, a charge corresponding to the content of the downlink signal DS is induced in the electrode 21. This causes a change in capacitance in the sensor 31, and the sensor controller 32 receives the downlink signal DS by detecting this change. In addition, when the uplink signal US transmitted by the sensor controller 32 arrives at the electrode 21, a charge corresponding to the arriving uplink signal US is induced in the electrode 21. The signal processing unit 24 receives the uplink signal US by detecting the charge thus induced in the electrode 21.
[0026] The switch 23 is, for example, a side switch provided on the side surface of the housing of the pen 2, and functions as an input unit configured to be able to accept an operation by a user. Specifically, the switch 23 is configured to output switch information indicating its own pressing state to the signal processing unit 24 according to the state of the operation by the user (pressing state). The switch information is, for example, information indicating one of two states, on and off.
[0027] The signal processing unit 24 has a function of receiving an uplink signal US transmitted by the sensor controller 32 via the electrode 21 and decoding it, and a function of generating a downlink signal DS in response to a command signal included in the uplink signal US and transmitting it to the sensor controller 32 via the electrode 21. The above-mentioned pen ID is written in an internal memory (not shown) of the signal processing unit 24 at the manufacturing stage.
[0028] The signal processing unit 24 may have the following functions: generating a pen-down event indicating that the pen 2 has come into contact with the panel surface 3t and a pen-up event indicating that the pen 2 has left the panel surface 3t based on the writing pressure level detected by the writing pressure detection unit 22, and transmitting data indicating each event in a downlink signal DS each time, detecting the reception strength of the uplink signal US and acquiring the proximity indicating the positional relationship between the pen 2 and the sensor controller 32 based on the result, and retaining a writing pressure level threshold (writing pressure determination threshold) used to detect the occurrence of a pen-down event and a pen-up event, and updating it as necessary. Details of this point will be described in the third embodiment described later.
[0029] The power supply 25 is for supplying operating power (DC voltage) to the signal processing unit 24, and is constituted by, for example, a cylindrical AAAA battery.
[0030] The sensor 31 includes a plurality of sensor electrodes (not shown). The sensor controller 32 receives the downlink signal DS via the sensor 31, and detects the position of the pen 2 on the panel surface 3t based on the reception strength of the downlink signal DS at each sensor electrode. The sensor controller 32 also demodulates the downlink signal DS to obtain various data contained in the data signal, and generates a pen-down event indicating that the pen 2 has come into contact with the panel surface 3t and a pen-up event indicating that the pen 2 has been released from the panel surface 3t based on the writing pressure level contained in the data signal. The sensor controller 32 sequentially supplies the detected position, the obtained various data, and data indicating the occurrence of an event to the host processor 33.
[0031] The host processor 33 is a central processing unit of the electronic device 3, and can run various applications including a drawing application. When running a drawing application, the host processor 33 renders a line drawing by interpolating discrete positions sequentially supplied from the sensor controller 32, and outputs the rendering result to the display device 30. As a result, a figure input by the user using the pen 2 is displayed on the panel surface 3t.
[0032] 2 is a schematic block diagram showing functional blocks of the writing pressure detection unit 22 and the sensor controller 32. As shown in the figure, the writing pressure detection unit 22 is functionally configured to have a writing pressure signal acquisition unit 40 and a writing pressure level acquisition unit 41, and the sensor controller 32 is functionally configured to have a proximity detection unit 42 (proximity detection means) and an event determination / threshold update unit 43.
[0033] The pen pressure signal acquisition unit 40 converts the pressure F applied to the tip of the core body 20 into an analog pen pressure signal AP. The pen pressure level acquisition unit 41 generates a pen pressure level raw_P, which is a digital value, based on this analog pen pressure signal AP. In a specific example, the pen pressure signal acquisition unit 40 is a time constant circuit, and the pen pressure level acquisition unit 41 is a clock counting unit. In this case, the analog pen pressure signal AP becomes a signal indicating a time corresponding to a time constant determined by a capacitance that changes according to the pressure F. In addition, the pen pressure level acquisition unit 41 becomes a circuit that counts clocks supplied from an oscillator (not shown) over a time specified by the analog pen pressure signal AP. The pen pressure level raw_P becomes a signal indicating the result of this count.
[0034] The writing pressure level raw_P detected by the writing pressure detection unit 22 is transmitted as a part of a data signal to the sensor controller 32 by the signal processing unit 24 shown in Fig. 1. Note that an analog writing pressure signal AP may be transmitted from the signal processing unit 24 to the sensor controller 32, and the function of the writing pressure level acquisition unit 41 may be provided within the sensor controller 32.
[0035] The proximity detection unit 42 has a function of detecting the maximum value (maximum reception strength) among the reception strengths of the downlink signal DS at each sensor electrode. The detected maximum reception strength is supplied to the event determination and threshold update unit 43 as the proximity S indicating the positional relationship between the pen 2 and the pen detection device 34.
[0036] The event determination and threshold updating unit 43 has a function of comparing the writing pressure level raw_P received from the pen 2 with a pre-stored writing pressure determination threshold, and generating a pen-down event and a pen-up event based on the result of the comparison. The event determination and threshold updating unit 43 is also configured to update the writing pressure determination threshold based on the writing pressure level raw_P when the proximity S supplied from the proximity detection unit 42 indicates that the positional relationship between the pen 2 and the pen detection device 34 satisfies a predetermined relationship.
[0037] FIG. 3 is a diagram showing the relationship between the relative positional relationship between the pen 2 and the pen detection device 34 and the proximity S. In this embodiment, the relative positional relationship between the pen 2 and the sensor controller 32 is classified into three types according to the value of the proximity S. Specifically, the zones are classified into a zone 1 where the proximity S is 0 (that is, an area where the sensor controller 32 cannot receive the downlink signal DS), a zone 2 where the proximity S is greater than 0 and smaller than a predetermined threshold Sth, and a zone 3 where the proximity S is equal to or greater than the threshold Sth. Since the proximity S is the maximum reception strength of the downlink signal DS in the sensor controller 32, these zones 1 to 3 represent the distance from the panel surface 3t. Specifically, the zone 3 represents the area closest to the panel surface 3t, the zone 1 represents the area farthest from the panel surface 3t, and the zone 2 represents the area sandwiched between the zones 1 and 3.
[0038] The event determination and threshold update unit 43 updates the writing pressure determination threshold when the proximity S indicates that the pen 2 is in zone 2. In this case, while it is possible to receive the downlink signal DS, it is guaranteed that the tip of the pen 2 is not in contact with the panel surface 3t. Therefore, the event determination and threshold update unit 43 sets the writing pressure level raw_P when the proximity S indicates that the pen 2 is in zone 2 as the reference value for the writing pressure level (a value indicating the writing pressure level raw_P when no pressure is applied to the pen tip; a system reference value, described later), and updates the writing pressure determination threshold based on this reference value.
[0039] Returning to Fig. 2, the event determination and threshold update unit 43 is configured to supply data indicating the occurrence of a pen-down event and a pen-up event, and the writing pressure level received from the pen 2 to the host processor 33 (see Fig. 1). However, the event determination and threshold update unit 43 does not supply the writing pressure level raw_P detected by the writing pressure detection unit 22 to the host processor 33 as is, but normalizes it before supplying it to the host processor 33. Hereinafter, the writing pressure level raw_P normalized in this way will be referred to as a normalized writing pressure level mod_P.
[0040] FIG. 4 is a diagram showing the relationship between the writing pressure level raw_P and the normalized writing pressure level mod_P. As shown in the figure, the writing pressure level raw_P is a value between Min and Max, and the normalized writing pressure level mod_P is a value between 0 and mod_Max. When the writing pressure level raw_P is less than the writing pressure determination threshold T, the event determination / threshold update unit 43 fixes the normalized writing pressure level mod_P to 0. On the other hand, when the writing pressure level raw_P is equal to or greater than the writing pressure determination threshold T, the normalized writing pressure level mod_P is determined by the following formula (1). mod_P=((mod_Max-1)×raw_P+Max-mod_Max×T) / (Max-T)···(1)
[0041] According to the formula (1), when the writing pressure level raw_P is equal to the writing pressure judgment threshold T, the normalized writing pressure level mod_P is 1, and when the writing pressure level raw_P is the maximum value Max, the normalized writing pressure level mod_P is the maximum value mod_Max. The minimum value Min, maximum value Max, and writing pressure judgment threshold T of the writing pressure level raw_P vary depending on the type and individual differences of the writing pressure detection unit 22. However, even if the same predetermined force exceeding the writing pressure judgment threshold T is applied, it is not preferable that the writing pressure level output differs depending on the type and individual differences of the writing pressure detection unit 22 or the timing of the pen-down operation. By using the normalized writing pressure level mod_P instead of the writing pressure level raw_P, it is possible to reduce the influence of the type and individual differences of the writing pressure detection unit 22 on the rendering result of the host processor 33.
[0042] Here, the writing pressure determination threshold T will be described in detail. Fig. 5 is a diagram for explaining the writing pressure determination threshold T. In this figure, the horizontal axis represents the passage of time t, and the vertical axis represents the writing pressure level raw_P. This point is the same in each of the figures shown later.
[0043] The event determination and threshold update unit 43 is configured to have, as internal variables, a system reference value ST and a margin M1 in addition to the writing pressure determination threshold T. The system reference value ST is a value corresponding to the writing pressure level raw_P acquired in a state where no pressure is applied to the pen tip of the pen 2. The margin M1 is a fixed value, and is equal to the difference T-ST between the writing pressure determination threshold T and the system reference value ST. In other words, the writing pressure determination threshold T is always a value that is greater than the system reference value ST by M1, as shown in FIG. 5. Therefore, deriving or updating the writing pressure determination threshold T is equivalent to deriving or updating the system reference value ST.
[0044] Based on its definition, the system reference value ST is expected to be equal to the pen pressure level raw_P when no pressure is applied to the pen tip of pen 2. At t < t0 in Fig. 5, the state as expected is shown. However, as also shown in the figure, it is normal for a certain ripple to occur in the pen pressure level raw_P, so the system reference value ST becomes a value equal to the average value of the pen pressure level raw_P.
[0045] In the example of Fig. 5, near time t0, a pen-down operation is being performed by the user. As shown in the figure, when the pen-down operation is performed, the pen pressure level raw_P increases accordingly. When the pen pressure level raw_P exceeds the pen pressure determination threshold T, the pen-down event is activated by the event determination and threshold update unit 43. Using this event, the rendering of lines by the drawing application operating on the host processor 33 is started.
[0046] After that, when the user performs a pen-up operation and the pen pressure level raw_P falls below the pen pressure determination threshold T at time t1, the pen-up event is activated by the event determination and threshold update unit 43. Thereby, the rendering of the line by the drawing application ends.
[0047] Here, in FIG. 5, comparing the writing pressure level raw_P before time t0 with the writing pressure level raw_P after time t1, it can be seen that the latter is larger. Since both are in the pen-up state, it is expected that these will be the same value under normal circumstances. The reason why these do not become the same value is that the writing pressure detection unit 22 has the above-mentioned hysteresis. According to the technology of Patent Document 1, in such a case, the system reference value ST can be calibrated. Specifically, the writing pressure level raw_P (the writing pressure level raw_P within the illustrated period P) that is smaller than the current writing pressure judgment threshold T and is changing within a predetermined deviation is statistically processed to derive the system reference value ST, and further the writing pressure judgment threshold T can be derived by adding a margin M1 to the result. This calibration can also be performed in the sensor controller 32 according to this embodiment.
[0048] However, on the other hand, this calibration alone cannot solve the various problems as described above. According to the present embodiment, the first and second problems among the three problems described above are solved. Therefore, in the following, the first and second problems will be described in detail with reference to Figs. 5 and 6, and then the operation of the event determination and threshold update unit 43 according to the present embodiment for solving these problems will be described in detail.
[0049] 6 is a diagram for explaining the first problem. According to the hysteresis of the pen pressure detection unit 22, after the user performs a pen-up operation at time t1, the value of the pen pressure level raw_P does not immediately return to the original level. At this time, as shown in FIG. 6, the pen pressure level raw_P may remain above the pen pressure determination threshold value T for a while after time t1 (until time t2 in FIG. 6). In that case, a time lag occurs between the user performing a pen-up operation and the signal processing unit 24 generating a pen-up event, during which rendering by the host processor 33 continues, giving the user the sensation of ink leakage (the ink leakage phenomenon described above).
[0050] FIG. 7 is a diagram illustrating the second problem. To perform the above calibration, a certain number of samples of the pen pressure level raw_P are required, and therefore a certain amount of time (for example, the period P shown in FIG. 5) is required. However, if the user operates the pen quickly, as in the example shown in FIG. 7, a sufficient number of samples may not be obtained between the pen-up and the next pen-down. That is, in FIG. 7, the kth pen-down operation is performed at time APD[k], and the kth pen-up operation is performed at time APU[k]. After that, the k+1th pen-down operation is performed at time APD[k+1], and the k+1th pen-up operation is performed at time APU[k+1]. In this case, if the time between time APU[k] and time APD[k+1] is short, calibration cannot be performed within this period.
[0051] FIG. 8 is a diagram showing the operation of the event determination and threshold update unit 43 according to the present embodiment for solving these problems. In order to update the system reference value ST (pen pressure determination threshold value T), the event determination and threshold update unit 43 refers to the proximity S supplied from the proximity detection unit 42 in addition to the pen pressure level raw_P. Specifically, as shown in FIG. 8, when the proximity S indicates that the pen 2 is in the zone 2 shown in FIG. 3, the system reference value ST (pen pressure determination threshold value T) is updated based on the pen pressure level raw_P. Note that, although FIG. 8 shows an example in which the value of the pen pressure level raw_P is directly set as the system reference value ST, a moving average of the pen pressure level raw_P (average value of the pen pressure level raw_P in a time shorter than the time required for calibration) may be calculated and set as the system reference value ST.
[0052] By performing such an update, the system reference value ST (pen pressure determination threshold T) can be updated (not based on statistics) based on one pen pressure level raw_P acquired when the proximity S indicates that it is appropriate to update the system reference value ST (pen pressure determination threshold T), thereby reducing the possibility that calibration will not be completed between pen-up and the next pen-down. Also, when the proximity S acquired from the proximity detection unit 42 indicates that the positional relationship between the pen 2 and the pen detection device 34 satisfies a predetermined relationship (specifically, that the pen 2 is not in contact with the panel surface 3t), the system reference value ST (pen pressure determination threshold T) can be updated immediately, thereby reducing the ink leakage phenomenon.
[0053] 9 is a flow diagram showing the process flow of the process performed by the event determination and threshold update unit 43. Hereinafter, the operation of the event determination and threshold update unit 43 according to this embodiment will be described in more detail with reference to FIG.
[0054] As shown in FIG. 9, the event determination and threshold update unit 43 first initializes the writing pressure determination threshold T (system reference value ST) (step S1), and sets the current state to pen-up (step S2).
[0055] Next, the event determination and threshold update unit 43 determines whether or not a downlink signal DS has been received (step S3). If it is determined in step S3 that the downlink signal DS has not been received, the event determination and threshold update unit 43 returns to step S3 and repeats the determination process. On the other hand, if the event determination and threshold update unit 43 determines that the downlink signal DS has been received in step S3, it acquires the proximity S from the proximity detection unit 42 (step S4) and acquires the writing pressure level raw_P by decoding the data signal (step S5). Then, it converts the writing pressure level raw_P into a normalized writing pressure level mod_P (see FIG. 4) based on the writing pressure determination threshold T and outputs it to the host processor 33 (step S6).
[0056] Next, the event determination and threshold update unit 43 determines whether the pen 2 that transmitted the downlink signal DS is in one of zones 1 to 3 shown in FIG. 3 based on the obtained proximity S (step S7). As a result, when it is determined that the pen 2 is in zone 2 (that is, when it is guaranteed that the pen 2 can receive the downlink signal DS but is not in contact with the panel surface 3t), the event determination and threshold update unit 43 updates the writing pressure determination threshold T (system reference value ST) based on the writing pressure level raw_P obtained in step S5 (step S8). Specifically, the system reference value ST is updated by the writing pressure level raw_P obtained in step S5, and the writing pressure determination threshold T is calculated by adding a margin M1 to the updated system reference value ST.
[0057] Next, the event determination and threshold update unit 43 compares the pen pressure level raw_P acquired in step S5 with the pen pressure determination threshold T (step S9). If the result shows that the pen pressure level raw_P is greater than the pen pressure determination threshold T, first, it determines whether the current state is pen-up or pen-down (step S10). If it is determined that the current state is pen-up, a pen-down event is generated, and the current state is set to pen-down (step S11). This setting process includes a process of outputting data indicating that a pen-down event has occurred to the host processor 33. After completing the process of step S11, the event determination and threshold update unit 43 returns to step S3 and waits for the next timing to arrive. On the other hand, if it is determined that the current state is pen-down in step S10, the event determination and threshold update unit 43 skips the process of step S11 and returns to the process of step S3.
[0058] The event determination and threshold update unit 43, which has obtained a result that the writing pressure level raw_P is equal to or less than the writing pressure determination threshold T by the comparison in step S8, first determines whether the current state is pen-up or pen-down (step S12). If it is determined that the current state is pen-down, it generates a pen-up event and sets the current state to pen-up (step S13). This setting process includes a process of outputting data indicating that a pen-up event has occurred to the host processor 33. After completing the process in step S13, the event determination and threshold update unit 43 returns to step S3 and waits for the next timing to arrive. On the other hand, if it is determined that the current state is pen-up in step S12, the event determination and threshold update unit 43 skips the process in step S13 and returns to the process in step S3.
[0059] As described above, according to the first embodiment of the present invention, since the writing pressure determination threshold T can be updated (not based on statistics) based on one writing pressure level raw_P acquired at an appropriate time (specifically, when the pen 2 is in zone 2), the possibility that calibration will not be completed between pen-up and the next pen-down can be reduced. Also, when the proximity S acquired from the proximity detection unit 42 indicates that the positional relationship between the pen 2 and the pen detection device 34 satisfies a predetermined relationship (specifically, when the pen 2 is in zone 2), the writing pressure determination threshold T can be updated immediately, thereby reducing the ink leakage phenomenon.
[0060] In this embodiment, an example in which the proximity detection unit 42 is provided in the sensor controller 32 has been described, but the proximity detection unit may be provided in the signal processing unit 24 of the pen 2. In this case, it is preferable to use the reception strength of the uplink signal US received via the electrode 21 shown in Fig. 1 as the proximity S. Specifically, for example, in an electromagnetic induction type pen 2, it is preferable to use the magnitude of the current generated by the tablet alternating magnetic field as the proximity S, and for example, in an active electrostatic type pen 2, it is preferable to use the amount of charge induced in the electrode 21 as the proximity S.
[0061] In other words, the proximity detection unit may generate the proximity S based on the reception strength at the receiving side of the signal transmitted and received between the pen 2 and the pen detection device 34. However, the proximity detection unit may generate the proximity S based on information other than the reception strength at the receiving side of the signal transmitted and received between the pen 2 and the pen detection device 34. For example, the proximity detection unit may generate the proximity S based on the detection result of the capacitance generated between the electrode 21 and the sensor electrode constituting the sensor 31, or the pressed state of the switch 23. In addition, the proximity detection unit may generate the proximity S based on an image of the panel surface 3t captured by an image sensor provided in the pen 2, or may generate the proximity S based on the result of echolocation performed by a sonar provided in the pen. Furthermore, the proximity detection unit may generate the proximity S based on two or more of these pieces of information.
[0062] Furthermore, the function of the event determination and threshold update unit 43 may be provided in the pen 2, instead of in the sensor controller 32. In this case, it is preferable that the signal processing unit 24 of the pen 2 transmits data indicating the occurrence of a pen-down event and a pen-up event to the sensor controller 32 by a downlink signal DS.
[0063] In addition, the sensor controller 32 can be configured to detect multiple pens 2 each having a different pen ID. In this case, since a different pen ID is received from each of the multiple pens 2, the event judgment / threshold update unit 43 may be configured to hold a writing pressure judgment threshold T and a system reference value ST for each received pen ID, and to update these based on the corresponding writing pressure level raw_P.
[0064] Next, a position detection system 1 according to a second embodiment of the present invention will be described. The basic configuration of the position detection system 1 according to this embodiment is similar to that shown in Figs. 1 and 2. However, the proximity detection unit 42 does not have to be provided. This embodiment differs from the first embodiment in that the event determination and threshold update unit 43 uses two types of writing pressure determination thresholds. The operation of the event determination and threshold update unit 43 according to this embodiment will be described in detail below.
[0065] 10 is a diagram showing the operation of the event determination and threshold update unit 43 according to this embodiment. In addition to the writing pressure determination threshold T (first threshold) described in the first embodiment, the event determination and threshold update unit 43 according to this embodiment uses an auxiliary threshold TU1 (second threshold) different from the writing pressure determination threshold T. The event determination and threshold update unit 43 is configured to calculate the auxiliary threshold TU1 to be a value larger than the writing pressure determination threshold T after generating a pen-down event as described in the first embodiment.
[0066] The following formula (2) is an example of a specific formula for calculating the auxiliary threshold value TU1. Here, f(PEAK) is a function of the peak value PEAK of the writing pressure level raw_P (the maximum value of the writing pressure level raw_P detected while the pen 2 is in a pen-down state), and is configured to be larger as the peak value PEAK is larger. After generating a pen-down event, the event determination and threshold update unit 43 periodically acquires the writing pressure level raw_P and acquires the maximum value of the writing pressure level raw_P after the occurrence of the pen-down event. Then, the event determination and threshold update unit 43 is configured to calculate the auxiliary threshold value TU1 by substituting the acquired maximum value into formula (2) as the peak value PEAK. TU1 = T + f(PEAK) (2)
[0067] The auxiliary threshold value TU1 calculated as described above increases as the writing pressure level raw_P continues to increase, and becomes a fixed value once the writing pressure level raw_P reaches a maximum, as shown in Fig. 10. The event determination and threshold value update unit 43 uses the calculated auxiliary threshold value TU1 to detect a pen-up operation. That is, the event determination and threshold value update unit 43 is configured to generate a pen-up event based on a comparison result between the writing pressure level raw_P and the auxiliary threshold value TU1.
[0068] Here, the meaning of formula (2) will be explained in detail. Fig. 11 is a diagram showing a schematic diagram of the change in the pen pressure level raw_P when the peak value PEAK is P1 and when it is P2 (>P1). In the figure, the curve C1 shows the case when the peak value PEAK is P1, and the curve C2 shows the case when the peak value PEAK is P2. For both curves C1 and C2, it is assumed that a pen-down operation occurs at time t0, and a pen-up operation occurs at time t1.
[0069] As can be seen from FIG. 11, the pen pressure level raw_P after the user performs a pen-up operation drops sharply once, and then slowly changes to approach zero. The minimum value at the time of this sharp drop is different between the curve C1 and the curve C2. That is, the minimum value V2 of the curve C2, which has a relatively large peak value PEAK, is greater than the minimum value V1 of the curve C1, which has a relatively small peak value PEAK. The time required for the pen pressure level raw_P to return to zero is also different between the curve C1 and the curve C2. That is, the return time t3-t1 of the curve C2, which has a relatively large peak value PEAK, is greater than the return time t2-t1 of the curve C1, which has a relatively small peak value PEAK. Therefore, it can be understood that in order to generate a pen-up event promptly after a pen-up operation while avoiding erroneous detection of a pen-up operation, the larger the peak value PEAK, the larger the auxiliary threshold value TU1 used to detect the pen-up operation should be. Equation (2) is a formulation of this.
[0070] Therefore, according to this embodiment, it can be said that it is possible to appropriately generate a pen-down event and a pen-up event regardless of the hysteresis of the pen pressure detection unit 22. As shown in FIG. 10, compared with the case of generating a pen-up event based on the pen pressure determination threshold value T, it becomes possible to eliminate the ink leakage phenomenon at an earlier stage.
[0071] Note that instead of the peak value PEAK of the pen pressure level raw_P, the auxiliary threshold value TU1 may be calculated based on the length of time during which the pen 2 is in the pen-down state. This will be described in detail below.
[0072] FIG. 12 is a diagram schematically showing changes in the pen pressure level raw_P for the case where the time during which the pen 2 is in the pen-down state is t2 - t1 and the case where it is t2 - t0 (t0 < t1). In the figure, the case where the time during which the pen is in the pen-down state is t2 - t1 is indicated by curve C3, and the case where the time during which the pen is in the pen-down state is t2 - t0 is indicated by curve C4. The occurrence time of the pen-up operation is set to time t2 for both curves C3 and C4.
[0073] The pen pressure level raw_P after the user performs a pen-up operation also changes such that it once rapidly decreases and then gradually approaches zero in this case. The minimum values when rapidly decreasing are different between curve C3 and curve C4. That is, the minimum value V4 of curve C4 with a relatively long pen-down time is larger than the minimum value V3 of curve C3 with a relatively short pen-down time. Also, the time required for the pen pressure level raw_P to return to zero is different between curve C3 and curve C4. That is, the return time t4 - t2 of curve C4 with a relatively long pen-down time is larger than the return time t3 - t2 of curve C3 with a relatively short pen-down time. Therefore, in order to avoid misdetection of the pen-up operation and promptly generate a pen-up event after the pen-up operation, it is understood that the larger the length of time during which the pen is in the pen-down state, the larger the auxiliary threshold value TU1 used to detect the pen-up operation may be set.
[0074] The following formula (3) represents a calculation formula for the auxiliary threshold value TU1 that can be used in this case: where f(L) is a function of the duration L of the pen-down state, and is configured to increase as the duration L increases. TU1 = T + f(L) (3)
[0075] Furthermore, in the second embodiment, if the auxiliary threshold value TU1 is simply used, there is a possibility that a pen-down event will occur immediately after the occurrence of a pen-up event. This is because the writing pressure level raw_P immediately after falling below the auxiliary threshold value TU1 is usually a value greater than the writing pressure determination threshold value T. Therefore, it is preferable that the event determination / threshold value update unit 43 according to this embodiment further performs processing to set the writing pressure determination threshold value T to a value greater than the auxiliary threshold value TU1 in response to the occurrence of a pen-up event. This point will be described in detail below with reference to FIG. 10 again.
[0076] As shown in FIG. 10, the event determination and threshold update unit 43 performs a process of updating the system reference value ST with the pen pressure level raw_P at time t3 when the pen-up event occurs. Accordingly, the pen pressure determination threshold T is also updated. After that, when the pen pressure level raw_P falls below the system reference value ST, the event determination and threshold update unit 43 updates the system reference value ST and the pen pressure determination threshold T with the pen pressure level raw_P at that time. In this way, it is possible to avoid the occurrence of a pen-down event unless the pen pressure level raw_P strongly rebounds. Note that when the pen pressure level raw_P strongly rebounds, the pen pressure level raw_P exceeds the pen pressure determination threshold T as shown at time t4 in FIG. 10, and therefore the pen-down event occurs.
[0077] 13 and 14 are flow charts showing the process flow of the process performed by the event determination and threshold update unit 43. Hereinafter, the operation of the event determination and threshold update unit 43 according to this embodiment will be described in more detail with reference to these figures.
[0078] The processing of steps S1 to S6 is the same as that of the first embodiment. However, step S4 may be skipped (not shown in FIG. 13 and FIG. 14). After step S6, the event determination and threshold update unit 43 determines whether the current state is pen-up or pen-down (step S20). As a result, if it is determined that the current state is pen-up, the event determination and threshold update unit 43 next compares the writing pressure level raw_P acquired in step S5 with the system reference value ST (step S21). Then, if the writing pressure level raw_P is less than the system reference value ST, the system reference value ST is updated based on the writing pressure level raw_P. Specifically, the system reference value ST is updated by the writing pressure level raw_P acquired in step S5. At this time, the writing pressure determination threshold T is also updated with the update of the system reference value ST. After updating the system reference value ST and the writing pressure determination threshold T, the event determination and threshold update unit 43 returns the processing to step S3.
[0079] On the other hand, if the event determination and threshold update unit 43 determines in step S22 that the writing pressure level raw_P is equal to or greater than the system reference value ST, it then compares the writing pressure level raw_P with the writing pressure determination threshold T (step S23). If the result indicates that the writing pressure level raw_P is greater than the writing pressure determination threshold T, it generates a pen-down event and sets the current state to pen-down (step S24). The details of this process are the same as those of step S11 shown in FIG. 9. Next, the event determination and threshold update unit 43 sets the peak value PEAK, which is an internal variable, to 0 (step S25), and returns the process to step S3.
[0080] If it is determined in step S20 that the event has been down, the event determination and threshold update unit 43 compares the writing pressure level raw_P acquired in step S5 with the peak value PEAK (step S26), as shown in Fig. 14. If the writing pressure level raw_P is greater than the peak value PEAK, the writing pressure level raw_P is set to the peak value PEAK (step S27), and an auxiliary threshold value TU1 is calculated based on the writing pressure determination threshold T and the peak value PEAK (step S28). The event determination and threshold update unit 43 performs this calculation, for example, using the above-mentioned formula (2).
[0081] After the end of step S28, or when it is determined in step S26 that the writing pressure level raw_P is not greater than the peak value PEAK, the event determination and threshold update unit 43 compares the writing pressure level raw_P with the auxiliary threshold TU1 (step S29). If the result shows that the writing pressure level raw_P is equal to or less than the auxiliary threshold TU1, a pen-up event is generated, and the current state is set to pen-up (step S30). Details of this process are the same as those of step S13 shown in FIG. 9. Next, the event determination and threshold update unit 43 updates the system reference value ST and the writing pressure determination threshold T based on the auxiliary threshold TU1 (step S31), and returns the process to step S3. In a specific example, step S31 is a process of setting the writing pressure determination threshold T to a value greater than the auxiliary threshold TU1, but it may be a process of setting the system reference value ST to a value greater than the auxiliary threshold TU1.
[0082] As described above, according to the second embodiment of the present invention, it becomes possible to appropriately generate pen-down events and pen-up events regardless of the hysteresis of the pen pressure detection unit 22, thereby making it possible to quickly resolve the ink leakage phenomenon.
[0083] Next, the position detection system 1 according to the third embodiment of the present invention will be described. The basic configuration of the position detection system 1 according to the present embodiment is the same as that shown in FIGS. 1 and 2, except that the proximity detection unit 42 and the event determination / threshold update unit 43 are provided in the signal processing unit 24 of the pen 2. However, the proximity detection unit 42 may not be provided. In addition to the above points, the present embodiment is different from the first embodiment in that the event determination / threshold update unit 43 updates the pen pressure determination threshold using the occurrence of the pen-down event as a trigger. Hereinafter, the operation of the event determination / threshold update unit 43 according to the present embodiment will be described in detail.
[0084] FIG. 15 is a diagram showing the operation of the event determination / threshold update unit 43 according to the present embodiment. The event determination / threshold update unit 43 according to the present embodiment uses an auxiliary threshold TU2 (first auxiliary threshold) having a value smaller than the pen pressure determination threshold T (first threshold) described in the first embodiment. Specifically, as shown in FIG. 15, a value obtained by adding a margin M2 (<M1) to the system reference value ST is used as the auxiliary threshold TU2.
[0085] The event determination / threshold update unit 43 generates a pen-down event by the same process as the event determination / threshold update unit 43 according to the first embodiment, and updates the pen pressure determination threshold T using the occurrence of this pen-down event as a trigger. Specifically, after the pen-down event occurs, when the pen pressure level raw_P falls below the auxiliary threshold TU2, the pen pressure determination threshold T is configured to be updated. Further, the event determination / threshold update unit 43 generates the (k + 1)-th pen-down event based on the comparison result between the pen pressure level raw_P and the pen pressure determination threshold T updated using the occurrence of the k-th pen-down event as a trigger.
[0086] By performing such an operation of the event determination / threshold updating unit 43, as shown in FIG. 15, it becomes possible to update the writing pressure determination threshold T only once for each pen-down operation. Among the above-mentioned hysteresis, the mechanical hysteresis in particular can be said to be a change in the force response characteristics in the load and unload associated with the next cycle due to the load and unload associated with the previous cycle of pen-down operation to pen-up operation. Therefore, since it is desirable to perform calibration for each cycle in which this load and unload occur, it can be said that according to this embodiment, it is possible to perform the calibration of the writing pressure determination threshold T in a timely manner. In addition, even when time-consuming calibration such as the calibration described in Patent Document 1 cannot be performed, such as when the user operates the pen 2 quickly, it becomes possible to update the writing pressure determination threshold T.
[0087] 16 and 17 are flow diagrams showing the process flow of the process performed by the event determination and threshold update unit 43 according to this embodiment. Hereinafter, the operation of the event determination and threshold update unit 43 according to this embodiment will be described in more detail with reference to these drawings.
[0088] First, the event determination / threshold updating unit 43 according to this embodiment initializes the writing pressure determination threshold T (system reference value ST, auxiliary threshold TU2) (step S1a). As described above, the auxiliary threshold TU2 is always a value M2 larger than the system reference value ST, so that, as in the case of the writing pressure determination threshold T, deriving or updating the auxiliary threshold TU2 is equivalent to deriving or updating the system reference value ST.
[0089] Among the subsequent processes, the processes of steps S2 to S13 are executed in the same manner as in the first embodiment. However, steps S4, S7, and S8 (see FIG. 9) related to the proximity S may be skipped (not shown in FIG. 16 and FIG. 17). Also, steps S3 and S5 are executed by replacing them with steps S3a and S5a, respectively. Step S3a is a process for determining whether or not a timing has arrived to acquire the pen pressure level raw_P from the pen pressure detection unit 22. This timing may occur periodically, or may occur when an uplink signal US is received from the sensor controller 32. According to the latter, the subsequent processes are performed only when the pen 2 is near the sensor controller 32, so that it is possible to delay the decrease in the power supply 25. Step S5a differs from step S5 in that the pen pressure level raw_P is acquired by accepting an input from the pen pressure detection unit 22, rather than by decoding a data signal.
[0090] The event determination and threshold update unit 43 also sets a pen-down occurrence flag 1, which temporarily stores the occurrence of a pen-down, to false between steps S2 and S3 (step S40). After generating a pen-down event in step S11, the event determination and threshold update unit 43 sets the pen-down occurrence flag 1 to true (step S41).
[0091] When the event determination / threshold update unit 43 according to this embodiment determines in step S9 that the writing pressure level raw_P is equal to or less than the writing pressure determination threshold T, it further determines whether or not the writing pressure level raw_P is equal to or less than the auxiliary threshold TU2 (step S42), as shown in Fig. 17. Note that steps S12 and S13 also shown in Fig. 9 may be executed before execution of step S42, after it is determined in step S9 that the writing pressure level raw_P is equal to or less than the writing pressure determination threshold T, as shown in Fig. 17.
[0092] If it is determined in step S42 that the writing pressure level raw_P is not equal to or less than the auxiliary threshold value TU2, the event determination and threshold value update unit 43 returns the process to step S3. On the other hand, if the event determination and threshold value update unit 43 determines in step S42 that the writing pressure level raw_P is equal to or less than the auxiliary threshold value TU2, it first determines whether the pen-down occurrence flag 1 is true. As a result, if it is determined to be false, it returns the process to step S3. On the other hand, if it is determined to be true, the event determination and threshold value update unit 43 performs an update process of the writing pressure determination threshold value T (system reference value ST, auxiliary threshold value TU2) based on the writing pressure level raw_P (step S44, first update step). Specifically, as shown in FIG. 15, the system reference value ST is updated by the writing pressure level raw_P acquired in step S5. In addition, the writing pressure determination threshold value T and the auxiliary threshold value TU2 are calculated by adding the margins M1 and M2 to the updated system reference value ST, respectively. Thereafter, the event determination and threshold update unit 43 sets the pen-down occurrence flag 1 to false (step S45), and returns the process to step S3.
[0093] As described above, according to the third embodiment of the present invention, it is possible to update the writing pressure determination threshold T only once for each pen-down. Therefore, it is possible to timely perform calibration of the writing pressure determination threshold T. Also, it is possible to update the writing pressure determination threshold T even when time-consuming calibration such as the calibration described in Patent Document 1 cannot be performed, such as when the user operates the pen 2 quickly.
[0094] In this embodiment, the occurrence of a pen-down event is used as a trigger to update the pen pressure determination threshold T (system reference value ST, auxiliary threshold TU2) with the latest pen pressure level raw_P, but the occurrence of a pen-down event may also be used as a trigger to execute a calibration process as disclosed in Patent Document 1. Also, these may be executed in combination. Below, a modified example of this embodiment relating to such a combination will be described in detail with reference to the drawings.
[0095] Fig. 18 is a flow diagram showing the processing flow of the processing performed by the event determination and threshold update unit 43 according to this modified example. As can be understood by comparing Fig. 18 with Fig. 16, the processing performed by the event determination and threshold update unit 43 according to this modified example differs from the processing performed by the event determination and threshold update unit 43 according to this embodiment in that steps S1a, S40, and S41 become steps S1b, S40a, and S41a, respectively, and in that steps S50 and S51 are added between steps S6 and S9. The following description will focus on the differences.
[0096] In step S1b, the event determination and threshold update unit 43 according to this modification performs initial settings of the auxiliary thresholds Tshort, Tfluc (second and third auxiliary thresholds) and the number of references Tcount in addition to the writing pressure determination threshold T (system reference value ST, auxiliary threshold TU2). Regarding the auxiliary threshold Tshort, the event determination and threshold update unit 43 uses a value obtained by adding a predetermined margin to the system reference value ST, which is greater than the auxiliary threshold TU2 and smaller than the writing pressure determination threshold T, as the auxiliary threshold Tshort. Therefore, as in the case of the writing pressure determination threshold T and the auxiliary threshold TU2, deriving or updating the auxiliary threshold Tshort is equivalent to deriving or updating the system reference value ST. As for the auxiliary threshold Tfluc and the number of references Tcount, predetermined values are set.
[0097] Moreover, the event determination and threshold update unit 43 according to this modified example uses two flags for temporarily storing the occurrence of a pen-down. Specifically, in step S40a, pen-down occurrence flags 1 and 2 are each set to False. After a pen-down event is generated in step S11, pen-down occurrence flags 1 and 2 are each set to True (step S41a). Note that pen-down occurrence flag 1 is the same as that described in FIG. 16 and FIG. 17.
[0098] After executing step S6, the event determination and threshold update unit 43 according to this modified example determines whether the pen-down occurrence flag 2 is true (step S50). If it is determined to be false, the process proceeds to step S9. On the other hand, if it is determined to be true, the process executes a calibration process for the pen pressure determination threshold T (step S51).
[0099] 19 is a flow diagram showing the details of the calibration process executed in step S51. As shown in the figure, the event determination and threshold update unit 43 first stores the pen pressure level raw_P newly acquired in step S5 in a memory (not shown) (step S60). This process is executed so that at least the pen pressure level raw_P for the number of reference times Tcount is accumulated in the memory.
[0100] Next, the event judgment and threshold update unit 43 judges whether or not all of the past pen pressure levels raw_P for the number of references Tcount stored in memory are below the auxiliary threshold Tshort and have a maximum fluctuation range below the auxiliary threshold Tfluc (steps S61, S62).
[0101] The event determination and threshold updating unit 43 that has obtained a negative result in step S62 ends the calibration process and moves the process to step S9 in FIG. 18. On the other hand, the event determination and threshold updating unit 43 that has obtained a positive result in step S62 updates the writing pressure determination threshold T (system reference value ST, auxiliary thresholds TU2, Tshort) based on the past writing pressure levels raw_P for the number of references Tcount stored in the memory (step S63, second update step). Specifically, the system reference value ST is updated by the average value of the past writing pressure levels raw_P for the number of references Tcount stored in the memory. In addition, the writing pressure determination threshold T and the auxiliary thresholds TU2, Tshort are calculated by adding a predetermined margin to the updated system reference value ST. Thereafter, the event determination and threshold updating unit 43 sets the pen-down occurrence flag 2 to False (step S64), ends the calibration process, and moves the process to step S9 in FIG. 18.
[0102] Fig. 20 is a diagram showing the operation of the event determination and threshold update unit 43 according to this modified example. In this example, when the k-th pen-down event occurs at time t0, at time t2 when the writing pressure level raw_P falls below the auxiliary threshold TU2, the writing pressure determination threshold T (system reference value ST, auxiliary threshold TU2, Tshort) is updated by the latest writing pressure level raw_P at that time. Also, at time t3 when all of the past writing pressure levels raw_P for the number of references Tcount are equal to or less than the auxiliary threshold Tshort and the maximum fluctuation width is equal to or less than the auxiliary threshold Tfluc, the writing pressure determination threshold T (system reference value ST, auxiliary threshold TU2, Tshort) is updated by the calibration process shown in Fig. 19.
[0103] Furthermore, when the (k+1)th pen-down event occurs at time t2, thereafter, at time t5 when all of the past pen pressure levels raw_P for the number of references Tcount are equal to or less than the auxiliary threshold Tshort and the maximum fluctuation width is equal to or less than the auxiliary threshold Tfluc, the pen pressure determination threshold T (system reference value ST, auxiliary thresholds TU2, Tshort) is updated by the calibration process shown in Fig. 19. In this case, since the pen pressure level raw_P is not below the auxiliary threshold TU2, the pen pressure determination threshold T (system reference value ST, auxiliary thresholds TU2, Tshort) is not updated by the latest pen pressure level raw_P.
[0104] Furthermore, when the (k+2)th pen-down event occurs at time t6, at time t8 when the pen pressure level raw_P falls below the auxiliary threshold TU2, the pen pressure determination threshold T (system reference value ST, auxiliary threshold TU2, Tshort) is updated by the latest pen pressure level raw_P at that time. Also, at time t9 when all of the past pen pressure levels raw_P for the number of references Tcount are equal to or less than the auxiliary threshold Tshort and the maximum fluctuation width is equal to or less than the auxiliary threshold Tfluc, the pen pressure determination threshold T (system reference value ST, auxiliary threshold TU2, Tshort) is updated by the calibration process shown in FIG.
[0105] In this manner, according to this modified example, even if the writing pressure level raw_P does not fall below the auxiliary threshold value TU2 and therefore the writing pressure determination threshold value T (system reference value ST, auxiliary threshold value TU2, Tshort) is not updated using the latest writing pressure level raw_P, the writing pressure determination threshold value T (system reference value ST, auxiliary threshold value TU2, Tshort) can be updated by the calibration process shown in Fig. 19. This makes it possible to more appropriately calibrate the writing pressure determination threshold value T.
[0106] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and it goes without saying that the present invention can be embodied in various forms without departing from the spirit of the present invention. [Explanation of symbols]
[0107] 1 Position Detection System 2 Pen 3 Electronic equipment 3t Panel surface 20 core body 21 electrodes 22 Pen pressure detection unit 23 Switch 24 Signal Processing Section 25 Power supply 30 Display device 31 Sensors 32 Sensor Controller 33 Host Processor 34 Pen detection device 40 Pen pressure signal acquisition unit 41 Pen pressure level acquisition section 42 Proximity detection unit 43 Event judgment and threshold update unit AP Analog pen pressure signal DS Downlink Signal M1,M2 Margin PEAK Peak value ST System Reference Values T Pen pressure threshold TU1, TU2, Tshort, Tfluc Auxiliary Thresholds Tcount Reference count US uplink signal mod_P normalized pressure level raw_P pressure level
Claims
1. A pen including a pen pressure detection unit that detects a pen pressure level according to a force applied to a pen tip, Determine whether or not the timing for obtaining pen pressure has arrived; When it is determined that the timing has arrived, the writing pressure level is acquired from the writing pressure detection unit; generating a pen-down event based on a result of comparing the writing pressure level with a writing pressure determination threshold; after the pen-down event occurs, if the writing pressure level falls below a first auxiliary threshold which is smaller than the writing pressure determination threshold, a process of updating the writing pressure determination threshold is executed using the occurrence of the pen-down event as a trigger; pen.
2. By receiving the uplink signal transmitted by the sensor controller, it is determined that the timing for acquiring the pen pressure has arrived.
2. The pen of claim 1.
3. generating the pen-down event based on the writing pressure level exceeding the writing pressure determination threshold; A pen according to claim 1 or 2.
4. a second updating step of updating the writing pressure determination threshold when a predetermined number of past writing pressure levels are all equal to or less than the second auxiliary threshold and have a maximum fluctuation range equal to or less than the third auxiliary threshold; A pen according to any one of claims 1 to 3, further comprising:
5. The second auxiliary threshold is greater than the first auxiliary threshold.
5. A pen according to claim 4.
Citation Information
Patent Citations
Electronic apparatus, processing method and program
JP2012027875A
Electronic apparatus
JP2014182731A
Information input device and information input method
JP2015207034A
Electronic apparatus, processing method, and program
US20120026110A1
Touch panel system and electronic device
WO2016006426A1