Pressure calculation method and device, electronic device and touch control system

By sampling the phase-encoded coding signal within the sampling period and calculating the phase difference between adjacent frames to obtain pressure data, the problem of low interaction efficiency in the existing technology is solved, and the reporting rate and writing followability are improved. , which improves the user experience.

CN111758084BActive Publication Date: 2024-09-24SHENZHEN GOODIX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980000102.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-29
Publication Date
2024-09-24
Estimated Expiration
2039-01-29

Smart Images

  • Figure CN111758084B
    Figure CN111758084B
Patent Text Reader

Abstract

A pressure calculation method and device, electronic device and touch control system, the pressure calculation method comprising: sampling a coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coding sampling signal (S701); calculating pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period (S702). The pressure calculation method improves the reporting rate, further improves the writing followability, and enhances the writing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of touch control technology, and in particular to a pressure calculation method and device thereof, an electronic device, and a touch control system. Background Art

[0002] Touch input replaces traditional keyboard input, providing users with a convenient and fast input method when using electronic devices such as mobile phones and tablets.

[0003] In addition to directly touching the touch screen with your hands, in order to further improve the user experience, you can also use a stylus to touch the touch screen. Especially with the popularization of touch screens, the application of styluses that match the touch screens has become more and more widespread. The reporting rate is an important indicator of the effectiveness of the interaction between the stylus and the touch screen. The higher the reporting rate, the better and smoother the writing followability, and the better the writing experience. However, in the prior art, when generating a coding signal, the coding period occupies too long a sampling period, resulting in a low reporting rate and poor writing followability. Summary of the invention

[0004] In view of this, one of the technical problems solved by the embodiments of the present application is to provide a pressure calculation method and device thereof, an electronic device and a touch control system to overcome the above-mentioned defects in the prior art.

[0005] The present application provides a pressure calculation method, which includes:

[0006] The coding signal which has been phase-encoded and continuously coded is sampled within a set sampling period to obtain a coding sampling signal;

[0007] The pressure data within the sampling period is calculated according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0008] The present application provides a signal generation method, which includes:

[0009] Phase encoding is performed on the signal to be coded to generate a coding signal;

[0010] According to the set coding cycle, the coding signal is used to continuously perform continuous coding;

[0011] The coding signal is used to be sampled to obtain a coding sampling signal, so as to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0012] The present application provides a pressure calculation device, which includes:

[0013] The data sampling unit is used to sample the coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coding sampling signal;

[0014] The pressure calculation unit is used to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0015] The present application provides a signal generating device, which includes:

[0016] The encoding unit is used to perform phase encoding on the signal to be coded to generate a coding signal;

[0017] A coding unit, used for continuously coding using the coding signal according to a set coding cycle;

[0018] The coding signal is used to be sampled to obtain a coding sampling signal, so as to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0019] An embodiment of the present application provides an electronic device, which includes the pressure calculation device or signal generation device described in the embodiment of the present application.

[0020] The present application provides a touch control system, which includes a touch pen and a touch screen, wherein one end of the touch pen and the touch screen includes a signal generating device of any embodiment of the present application, and the other end includes a pressure calculating device of any embodiment of the present application.

[0021] In the technical solution provided in the embodiment of the present application, a coding sampling signal is obtained by sampling a coding signal that has been phase-encoded and continuously coded within a set sampling period; the pressure data within the sampling period is calculated based on the phase difference between adjacent frames of the coding sampling signal within the sampling period, thereby improving the reporting rate, further improving the writing followability, and enhancing the writing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Hereinafter, some specific embodiments of the present application will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:

[0023] Figure 1 A schematic diagram of a touch control system provided in Embodiment 1 of the present application;

[0024] Figure 2 This is a flow chart of the signal generation method in Embodiment 2 of the present application;

[0025] Figure 3This is a schematic diagram of a coding signal in Embodiment 3 of the present application;

[0026] Figure 4A This is a waveform diagram of a coding signal when the step is 45 degrees in the fourth embodiment of the present application;

[0027] Figure 4B This is a schematic diagram of a specific coding signal when the step is 45 degrees in the fourth embodiment of the present application;

[0028] Figure 5A This is a waveform diagram of a coding signal when the step is 90 degrees in Embodiment 5 of the present application;

[0029] Figure 5B This is a schematic diagram of a specific coding signal when the step is 90 degrees in Example 5 of the present application;

[0030] Fig. 6A This is a waveform diagram of a coding signal when the step is 180 degrees in Example 6 of the present application;

[0031] Figure 6B This is a schematic diagram of a specific coding signal when the step is 180 degrees in Example 6 of the present application;

[0032] Figure 7 This is a flow chart of the pressure calculation method in Embodiment 7 of the present application;

[0033] Fig. 8A A schematic diagram showing a comparison of the coding and sampling periods corresponding to a step of 45 degrees in the eighth embodiment of the present application;

[0034] Figure 8B This is another comparison diagram of the coding and sampling periods corresponding to the step of 45 degrees in the ninth embodiment of the present application;

[0035] Figure 8C This is another comparison diagram of the coding and sampling periods corresponding to the step of 45 degrees in the tenth embodiment of the present application;

[0036] Fig. 9 A schematic diagram showing a comparison of the coding and sampling periods corresponding to a step of 90 degrees in the eleventh embodiment of the present application;

[0037] Fig.10 A schematic diagram showing a comparison of the coding and sampling periods corresponding to a step of 180 degrees in the twelfth embodiment of the present application;

[0038] Fig.11 This is a schematic diagram of the structure of the pressure calculation device in the thirteenth embodiment of the present application;

[0039] Fig.12 This is a schematic diagram of the structure of the signal generating device in Example 14 of the present application. DETAILED DESCRIPTION

[0040] The implementation of any technical solution of the embodiments of the present application does not necessarily require achieving all of the above advantages at the same time.

[0041] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0042] In the technical solution provided in the embodiment of the present application, a coding sampling signal is obtained by sampling a coding signal that has been phase-encoded and continuously coded within a set sampling period; the pressure data within the sampling period is calculated based on the phase difference between adjacent frames of the coding sampling signal within the sampling period. Since the coordinate calculation and the pressure calculation can be considered at the same time and encoding based on the pressure and coordinate calculation can be performed at the same time, the coding period is shortened. Correspondingly, it is avoided that the coding period occupies the sampling period for too long, thereby improving the reporting rate, further improving the writing followability, and increasing the writing experience.

[0043] Figure 1 A schematic diagram of a touch control system provided in Embodiment 1 of the present application; Figure 1 As shown, the touch control system includes a stylus pen and a touch screen, the touch screen includes a sensing channel X, a driving channel Y, and a touch controller, the touch controller includes a driving circuit and a sensing circuit, when the touch screen detects the coordinate position of the stylus pen tip, the stylus pen tip electrode continuously sends out a coding signal for completing the coding, because there is a coupling capacitor between the stylus pen and the sensing channel X and the driving channel Y, the coding signal is coupled to the sensing channel X and the driving channel Y through the coupling capacitor, at this time, the driving channel and the sensing channel of the touch screen are connected to the sensing circuit of the touch controller, and the sensing circuit of the touch controller samples the coding signal to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0044] In the following embodiments, the stylus pen sends a coding signal to the touch screen, and the touch screen samples the coding signal as an example. However, it should be noted that in some application scenarios, the touch screen may send a coding signal to the stylus pen, and the stylus pen may sample the coding signal.

[0045] Figure 2 Schematic diagram of the signal generation method in the second embodiment of the present application; Figure 2 As shown, in this embodiment, it includes:

[0046] S201, performing phase encoding on the signal to be coded according to the coding protocol to generate a coding signal;

[0047] In step S201, during encoding, coding signals of adjacent frames in each coding cycle are made to have a phase difference according to a set step.

[0048] In this embodiment, the coding signal within a coding cycle includes multiple frames of coding signals, and the phase difference between two adjacent frames of coding signals has a set step. The multiple frames of coding signals include n frames of coordinate coding signals and m frames of pressure coding signals, where n is greater than or equal to 2, and m is greater than or equal to 0.

[0049] Optionally, in any embodiment of the present application, the phase difference between two adjacent frames of coding signals may be stepped by 45 degrees, 90 degrees, or 180 degrees.

[0050] For example, the steps set in different coding cycles remain unchanged, or can also be set to be dynamically adjustable. In the same coding cycle, the coding signals of two adjacent frames have the same step or are also called fixed, such as steps of 45 degrees, 90 degrees, and 180 degrees. The setting of the step is determined according to the definition of the pressure level in the application scenario. The tighter the pressure level, the smaller the step, and the looser the pressure level, the larger the step. Of course, it should be noted that the specific numerical values ​​of the steps here are for illustration only and are not particularly limited. In some embodiments, the step can also be 30 degrees.

[0051] In the description of the following embodiments, the phase of the first frame coding signal is used as the reference phase, and the reference phase is 0 for explanation. However, in some embodiments, if the reference phase is not 0, the following embodiments of the present application can be adaptively adjusted.

[0052] S202: According to the set coding cycle, use the coding signal to perform continuous coding.

[0053] In this embodiment, see Figure 3 , which is a schematic diagram of the coding signal in Example 3 of the present application; the coding signal within a coding cycle includes multiple frames of coding signals, and the phase difference between two adjacent frames of coding signals has a set step. The multiple frames of coding signals include n frames of coordinate coding signals and m frames of pressure coding signals. For example, the n frames of coordinate coding signals are continuous, and the m frames of pressure coding signals are continuous; the n frame of coordinate coding signals is located before the m frame of pressure coding signals.

[0054] In fact, it should be noted here that the definition of the coding sampling signal participating in the coordinate calculation is the coordinate coding sampling signal, and the definition of the coding sampling signal participating in the pressure calculation is the pressure coding sampling signal. The naming here is only relative, and does not limit the coordinate coding sampling signal to be only used for coordinate calculation, and does not limit the pressure coding sampling signal to be only used for pressure calculation. In fact, the coordinate coding sampling signal can also participate in the pressure calculation, or the pressure coding sampling signal can also participate in the coordinate calculation.

[0055] It should be noted that the m-frame pressure coding signal is not necessarily continuous, and can also be set to be interspersed with the n-frame coordinate coding signal according to the requirements of the application scenario to form the m-frame pressure coding signal and the n-frame coordinate coding signal spaced apart from each other. In addition, the specific frame numbers of the pressure coding signal and the coordinate coding signal can be flexibly set according to the requirements of the pressure level. The higher the pressure level, the higher the frame number, especially the higher the frame number of the pressure coding signal.

[0056] Figure 4A Schematic diagram of the waveform of the coding signal when the step is 45 degrees in the fourth embodiment of the present application; Figure 4A As shown, taking the coding signal as a square wave with a complete cycle corresponding to a 360-degree phase as an example, the coding signal of the P_0 frame coordinate is delayed by 45 degrees before the coding signal of the P_1 frame coordinate is started, and the coding signal of the P_2 frame coordinate is delayed by 135 degrees after the coding signal of the P_1 frame coordinate, and so on. Here, it should be noted that the coding signal is a square wave only as an example, and the coding signal can actually be a sine wave or a triangle wave.

[0057] Table 1 Figure 4A The pressure mapping relationship when the step is 45 degrees is shown in Table 1. When establishing the pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals is used to represent the pressure state value P0, and the phase difference ranges from 0 to 315 degrees, then P0 has a total of 8 pressure states, represented by 0, 1...7 respectively; similarly, the pressure state value P1 is represented by the phase difference between the P_1 coordinate coding signal and the P_2 frame pressure coding signal, then P1 has a total of 8 pressure states, represented by 0, 1...7 respectively; and so on.

[0058] Table 1 Figure 4A Pressure mapping relationship when the step is 45 degrees

[0059] Phase difference between P_0 and P_1 Pressure state value of P0 Phase difference between P_1 and P_2 Pressure state value of P1 0 0 0 0 45 1 45 1 90 2 90 2 135 3 135 3 180 4 180 4 225 5 225 5 270 6 270 6 315 7 315 7

[0060] Figure 4B This is a schematic diagram of a specific coding signal when the step is 45 degrees in the fourth embodiment of the present application; Figure 4BAs shown, if there are 3 frames of coding signals in a coding cycle (denoted as T), that is, P_0 and P_1 represent two frames of coordinate coding signals, and P_2 represents one frame of pressure coding signal. When establishing the pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals represents the pressure state value P0, according to the phase difference from 45 degrees to 315 degrees, P0 has a total of 8 pressure states, represented by 0, 1...7 respectively; similarly, the phase difference between the P_1 coordinate coding signal and the P_2 frame coordinate coding signal represents the pressure state value P1, then P1 has a total of 8 pressure states, represented by 0, 1...7 respectively. In another coding cycle (denoted as T+1), there are 3 frames of coding signals, that is, P_0 and P_3 represent two frames of coordinate coding signals, and P_4 represents one frame of pressure coding signal. The corresponding pressure state values ​​are represented by P2 and P3 respectively, and there are also 8 corresponding pressure states. If it is defined that two scanning cycles are required to output a valid pressure value, it can be seen that there will be 8*8*8*8, a total of 4096 pressure states, that is, 4096 pressure levels can be transmitted.

[0061] Figure 4C This is another specific coding signal schematic diagram when the step is 45 degrees; if there are 2 frames of coding signals in a coding cycle (denoted as T), corresponding to the above-mentioned X-direction and Y-direction channels respectively, P_0 represents a frame of coordinate coding signals, and P_1 also represents a frame of coordinate coding signals. When establishing the pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals is used to represent the pressure state value P0, according to the phase difference from 0 degrees to 315 degrees, P0 has a total of 8 pressure states, represented by 0, 1...7 respectively. The pressure state value corresponding to another coding cycle (denoted as T+1) is represented by P1, and there are also 8 corresponding pressure states. If it is defined that two scanning cycles can output a valid pressure size, it can be seen that a total of 8*8 64 pressure states will be generated, that is, 64 pressure levels can be transmitted.

[0062] Figure 5A Schematic diagram of the waveform of the coding signal when the step is 90 degrees in the fifth embodiment of the present application; Figure 5A As shown, taking the coding signal as a square wave as an example, the coding signal of the P_0 frame coordinate is delayed by 90 degrees (i.e., 360 degrees / 4) before the coding signal of the P_1 frame coordinate is started, and the coding signal of the P_2 frame coordinate is delayed by 270 degrees (360 degrees*3 / 4) after the coding signal of the P_1 frame coordinate, and so on. Here, it should be noted that the coding signal as a square wave is only an example, and the coding signal can actually be a sine wave or a triangle wave.

[0063] Table 2 is Figure 5AThe pressure mapping relationship when the step is 90 degrees is shown in Table 2. When establishing the pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals is used to represent the pressure state value P0, according to the phase difference from 0 to 270 degrees, P0 has a total of 4 pressure states, represented by 0, 1...3 respectively; similarly, the pressure state value P1 is represented by the phase difference between the P_1 coordinate coding signal and the P_2 frame coordinate coding signal, then P1 has a total of 4 pressure states, represented by 0, 1...3 respectively; the pressure state value P2 is represented by the phase difference between the P_2 and P_3 frame pressure coding signals, then P2 has a total of 4 pressure states, represented by 0, 1...7 respectively, and so on.

[0064] Table 2 is Figure 5A Schematic diagram of pressure mapping relationship when the step is 90 degrees

[0065] Phase difference between P_0 and P_1° Pressure state value of P0 Phase difference between P_1 and P_2 Pressure state value of P1 0 0 0 0 90 1 90 1 180 2 180 2 270 3 270 3

[0066] Figure 5B This is a specific schematic diagram of a coding signal when the step is 90 degrees in Example 5 of the present application; if there are 5 frames of coding signals in a coding cycle, where P_0 and P_1 respectively represent a frame of coordinate coding signals, and P_2 to P_4 respectively represent a frame of pressure coding signals. When establishing a pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals is used to represent the pressure state value P0, according to the phase difference from 0 degrees to 270 degrees, P0 has a total of 4 pressure states, represented by 0, 1...3 respectively; if the phase difference between the P_1 and P_2 frame coordinate coding signals, if the phase difference between the P_2 and P_3 frame coordinate coding signals, if the phase difference between the P_3 and P_4 frame coordinate coding signals are used to represent the pressure state values ​​P1, P2, and P3 respectively; the pressure state value corresponding to another coding cycle is represented by P0, P1, P2, and P3, and there are also 4 corresponding pressure states respectively. If a scan cycle is defined to output a valid pressure value, it can be seen that a total of 4*4*4*4, a total of 256 pressure states, will be generated, that is, 256 pressure levels can be transmitted.

[0067] Fig. 6A Schematic diagram of the waveform of the coding signal when the step is 180 degrees in the sixth embodiment of the present application; Fig. 6A As shown, taking the coding signal as a square wave as an example, there is no delay between the P_0 frame coordinate coding signal and the P_1 frame coordinate coding signal, and the P_2 frame coordinate coding signal starts after a delay of 180 degrees after the P_1 frame coordinate coding signal, and so on. Here, it should be noted that the coding signal as a square wave is only an example, and the coding signal can actually be a sine wave or a triangle wave.

[0068] Table 3 Fig. 6AThe pressure mapping relationship when the step is 180 degrees is shown in Table 3. When establishing the pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals is used to represent the pressure state value P0, and the phase difference ranges from 0 degrees to 180 degrees, then P0 has a total of 2 pressure states, represented by 0 and 1 respectively; similarly, the pressure state value P1 is represented by the phase difference between the P_1 coordinate coding signal and the P_2 frame coordinate coding signal, then P1 has a total of 2 pressure states, represented by 0 and 1 respectively.

[0069] Table 3 Fig. 6A Schematic diagram of pressure mapping relationship when the medium step is 180 degrees

[0070] Phase difference between P_0 and P_1° Pressure state value of P0 Phase difference between P_1 and P_2 Pressure state value of P1 0 0 0 0 180 1 180 1

[0071] Figure 6B This is a specific schematic diagram of a coding signal when the step is 180 degrees in Example 6 of the present application; if there are 9 frames of coding signals in a coding cycle, that is, P_0 and P_1 respectively represent a frame of coordinate coding signals, and P_2 to P_8 respectively represent a frame of pressure coding signals. When establishing a pressure mapping relationship, if the phase difference between the P_0 and P_1 frame coordinate coding signals is used to represent the pressure state value P0, according to the phase difference from 0 degrees to 180 degrees, P0 has a total of 2 pressure states, represented by 0 and 1 respectively; if the phase difference between the P_1 and P_2 frame coordinate coding signals is used, if the phase difference between the P_2 and P_3 frame coordinate coding signals is used, if the phase difference between the P_3 and P_4 frame coordinate coding signals is used... and so on, the pressure state values ​​​​P1, P2, P3, P5, P6, and P7 are represented respectively. If one scanning cycle is defined to output a valid pressure size, it can be seen that a total of 2*2*2*2*2*2*2*2*2 will be generated, totaling 256 pressure states, that is, the transmission of 256 pressure levels can be achieved.

[0072] Figure 7 Schematic diagram of the pressure calculation method in Example 7 of this application; Figure 7 As shown, it includes:

[0073] S701, sampling the coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coding sampling signal;

[0074] In this embodiment, as mentioned above, the coding sampling can be performed by the sensing circuit at the touch screen end. The sampling period can be flexibly set according to the application scenario, and the coding signal can be obtained by referring to the previous signal generation method embodiment.

[0075] S702: Calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0076] In this embodiment, when determining the pressure data between the stylus pen and the touch screen within the sampling period according to the coding sampling signal that at least includes the coordinate sampling signal in step S702, the pressure state value between the stylus pen and the touch screen within the sampling period can be determined according to the coding sampling signal that at least includes the coordinate sampling signal, and the pressure state value represents the magnitude of the pressure.

[0077] Further, referring to the generation of the above-mentioned coding signal, since the coding signal is obtained by encoding the coding signal based on phase encoding, when determining the pressure size within the sampling period, the pressure size within the sampling period is determined based on the phase between the coding sampling signals including at least the coordinate sampling signal.

[0078] Specifically, when determining the pressure within the sampling period based on the phases between the coding sampling signals including at least the coordinate sampling signal, adjacent differences can be performed on the phases corresponding to each other in one of the coding sampling signals to determine the pressure within the sampling period.

[0079] Furthermore, in the embodiment, when the pressure magnitude within the sampling period is determined according to the coding sampling signal including at least the coordinate sampling signal in step S702, the pressure data within the sampling period is determined specifically according to the phase difference between adjacent frames of the coding sampling signal within the sampling period and a pre-established pressure mapping relationship. For example, a pre-established pressure mapping relationship can be based on the phase difference between adjacent signals to characterize different pressure levels. In the pre-established pressure mapping relationship, for a step of a set phase difference, the combination between adjacent frames within the sampling period represents different pressure levels. Therefore, the phase difference between adjacent frame signals in the coding sampling signal is determined within a sampling period, and matched with the pre-established pressure mapping relationship, so as to determine the corresponding pressure level or also known as the pressure state value as pressure data.

[0080] Correspondingly, if the coding signal that has been phase-encoded and continuously coded is sampled within a set sampling period, a continuous n-frame coordinate sampling signal and a continuous m-frame pressure sampling signal are obtained, and the n-frame coordinate sampling signal and the m-frame pressure sampling signal can constitute a coding sampling signal as a whole; therefore, when calculating the pressure data within the sampling period, the pressure data between the stylus and the touch screen within the sampling period is determined according to the phase difference between the sampling signals with adjacent relationships within a sampling period. That is, in this case, by extension, the n-frame coordinate sampling signals are continuous, and the m-frame pressure sampling signals are continuous, and can constitute a continuous multi-frame sampling signal as a whole. When performing phase adjacent difference, if n is greater than or equal to 2, according to the phase difference between the adjacent frame coordinate sampling signals in the n-frame coordinate sampling signal, the phase difference between the adjacent coordinate sampling signal and the pressure sampling signal in the n-frame coordinate sampling signal and the m-frame pressure sampling signal; in addition, if m is greater than or equal to 2, the m-frame pressure sampling signals are phase adjacently differentiated to obtain the phase difference between the adjacent frame pressure sampling signals in the m-frame pressure sampling signal, and jointly participate in the calculation of the pressure data.

[0081] Based on the above embodiment, the method may further include: calculating the touch position according to the coordinate sampling signal. This step may be performed after step S702, or between step S701 and step S702, or may be performed as soon as the coordinate sampling signal is obtained.

[0082] Fig. 8A 4 is a schematic diagram of a comparison of coding and sampling periods corresponding to a step of 45 degrees in the eighth embodiment of the present application; corresponding to a coding situation with a step of 45 degrees, such as Fig. 8A As shown, when the signal is generated, the coding signal is phase-encoded with a phase difference of 45 degrees within one coding cycle to obtain a coding signal and continuous coding is performed. When the pressure is calculated, the coding signal is sampled within a sampling cycle to obtain a coding sampling signal, and the pressure data P0, ... PN-1 are obtained according to the phase adjacent difference between the coding sampling signals of adjacent frames, and the coordinate data X and Y are obtained at the same time.

[0083] Figure 8BThis is another comparative schematic diagram of the coding and sampling periods corresponding to the step of 45 degrees in Example 9 of the present application; the coding situation corresponding to the step of 45 degrees is shown in Figure 8b. When the signal is generated, the coding signal is phase-encoded according to the phase difference of 45 degrees in one coding period to obtain a total of three frames of coding signals, including two frames of coordinate coding signals and one frame of pressure coding signal. When the pressure is calculated, the coding signal is sampled in one sampling period T to obtain the corresponding coordinate sampling signal and pressure sampling signal, and the pressure data P0 and P1 are obtained according to the phase adjacent differences between the coordinate sampling signals and the pressure sampling signals and the phase adjacent differences between the pressure sampling signals; if the pressure size is output once for two sampling periods, the pressure data P2 and P3 are obtained in the next sampling period T+1, and the pressure size is determined according to the pressure data P0, P1, P2, and P3; at the same time, the coordinate data X and Y are obtained according to the coordinate sampling signal.

[0084] In this embodiment, as described in Table 1 above, since one pressure data may correspond to eight pressure states, the four pressure data may represent a total of 4*4*4*4 pressure levels, which is a total of 4096 pressure levels.

[0085] Figure 8C 4 is another comparison diagram of the coding and sampling period corresponding to the step of 45 degrees in the tenth embodiment of the present application; Figure 8C As shown, when the signal is generated, the coding signal is phase-encoded with a phase difference of 45 degrees within one coding cycle to obtain a total of two frames of coding signals, both of which are coordinate coding signals. When the pressure is calculated, the coding signal is sampled in a sampling cycle T to obtain the corresponding coordinate sampling signal, and the pressure data P0 is obtained based on the phase adjacent difference between the coordinate sampling signals; if the pressure size is output once for two sampling cycles, the pressure data P1 is obtained in the next sampling cycle T+1, and the pressure size is determined based on the pressure data P0 and P1; at the same time, the coordinate data X and Y are obtained based on the coordinate sampling signal.

[0086] In this embodiment, as described in Table 1, since one pressure data may correspond to eight pressure states, if the pressure magnitude is output once in two sampling periods, the two pressure data may represent 8*8 pressure magnitudes, which is a total of 64 pressure levels.

[0087] Fig. 9 1 is a schematic diagram of a comparison of coding and sampling periods corresponding to a step of 90 degrees in the eleventh embodiment of the present application; corresponding to a coding situation with a step of 90 degrees, such as Fig. 9As shown, when the signal is generated, the coding signal is phase-encoded with a phase difference of 90 degrees within one coding cycle to obtain two frames of coordinate coding signals (P_0, P_1) and two frames of pressure coding signals (P_2, P_3). When the pressure is calculated, the coding signal is sampled in one sampling cycle to obtain a coordinate sampling signal and a pressure sampling signal. According to the phase adjacent differences between the coordinate sampling signals and the pressure sampling signals and the phase adjacent differences between the pressure sampling signals, the pressure data P0, P1, P2 are obtained, and the coordinate data X, Y are obtained according to the coordinate sampling signals.

[0088] In this embodiment, as described in Table 2 above, since one pressure data may correspond to four pressure states, if the pressure magnitude is output once in one sampling period, the three pressure data may represent a total of 4*4*4 pressure magnitudes, a total of 64 pressure levels.

[0089] Fig.10 1 is a schematic diagram of a comparison of coding and sampling periods corresponding to a step of 180 degrees in the twelfth embodiment of the present application; corresponding to a coding situation with a step of 180 degrees, such as Fig.10 As shown, when the signal is generated, the coding signal is phase-encoded with a phase difference of 180 degrees within one coding cycle to obtain two frames of coordinate coding signals (P_0, P_1) and two frames of pressure coding signals (P_2, P_3...P_8). When the pressure is calculated, the coding signal is sampled in one sampling cycle to obtain a coding sampling signal. According to the phase adjacent differences between the corresponding coordinate sampling signals and the pressure sampling signals and the phase adjacent differences between the pressure sampling signals, the pressure data P0, P1, P2...P7 are obtained, and the coordinate data X, Y are obtained according to the coordinate sampling signals.

[0090] In this embodiment, as described in Table 3 above, since one pressure data corresponds to two pressure states, if the pressure size is output once in one sampling period, the three pressure data can represent a total of 2*2*2*2*2*2*2*2*2, a total of 256 pressure levels of pressure size.

[0091] In the above Figure 8A-Figure 10 In the process, when the synchronization requirements for coding and sampling are not high, the sampling start point and the sampling end point can be adjusted within a sampling period, for example, the entire sampling period can be made shorter than the coding period, such as the sampling start point is several us later than the coding start point (such as 50us), and the sampling end point is several us earlier than the coding end point (such as 50us).

[0092] In the above embodiment, each pressure state data can be represented by a bit. The width of the pressure coding signal and the width of the coordinate coding signal can be flexibly set according to actual needs. The length of the coding cycle and the sampling cycle can be flexibly set according to actual needs.

[0093] Fig.11 Schematic diagram of the structure of the pressure calculation device in the thirteenth embodiment of the present application; Fig.11 As shown, it includes:

[0094] The data sampling unit 1101 is used to sample the coded signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coded sampling signal;

[0095] The pressure calculation unit 1102 is used to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0096] Fig.12 Schematic diagram of the structure of the signal generating device in the fourteenth embodiment of the present application; Fig.12 As shown, it includes:

[0097] The encoding unit 1201 is used to perform phase encoding on the signal to be coded to generate a coding signal;

[0098] The coding unit 1202 is used to perform continuous coding using the coding signal according to a set coding cycle;

[0099] The coding signal is used to be sampled to obtain a coding sampling signal, so as to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period.

[0100] An embodiment of the present application also provides an electronic device, which includes the pressure calculation device or signal generation device described in any embodiment of the present application.

[0101] Optionally, in any embodiment of the present application, the electronic device is the stylus, the signal generating device is configured on the stylus; correspondingly, the pressure calculating device is configured on the touch screen. The electronic device may also be the touch screen, the signal generating device is configured on the touch screen; correspondingly, the pressure calculating device is configured on the stylus.

[0102] Furthermore, in the touch control system of the above-mentioned embodiment of the present application, one end of the stylus and the touch screen includes the signal generating device in any embodiment of the present application, and the other end includes the pressure calculating device in any embodiment of the present application.

[0103] It should be noted that, in other examples, the coding signal may also only include a pressure coding signal. In this case, the coding sampling signal only includes a pressure sampling signal, and the pressure data is calculated based on the phase difference between the pressure sampling signals. At the same time, if the touch position calculation is taken into account, one coding cycle includes at least two frames of pressure coding signals. Correspondingly, one sampling cycle includes at least two frames of pressure sampling signals.

[0104] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to:

[0105] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0106] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0107] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.

[0108] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0109] (5) Other electronic devices with data interaction functions.

[0110] Thus far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.

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

[0112] The same and similar parts between the various embodiments in this specification can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0113] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A pressure calculation method, characterized in that: include: The coding signal which has been phase-encoded and continuously coded is sampled within a set sampling period to obtain a coding sampling signal, wherein a phase difference is provided between two adjacent frames of coding signals in each coding period according to a preset step when performing phase encoding, and a combination of phase differences between multiple adjacent frames of coding signals in one or more coding periods represents a pressure magnitude; The pressure data within the sampling period is calculated according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, and the pressure magnitude is calculated according to a combination of multiple pressure data calculated within one or more sampling periods.

2. The method according to claim 1, characterized in that Calculating the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, including: calculating the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period and a pre-established pressure mapping relationship.

3. The method according to claim 2, characterized in that: In the pre-established pressure mapping relationship, for a step of a set phase difference, different combinations of phase differences between adjacent frames within the sampling period represent different pressure levels.

4. The method according to claim 3, characterized in that The phase difference between two adjacent frames of coding signals may be stepped into any one of 45 degrees, 90 degrees, and 180 degrees.

5. The method according to claim 3, characterized in that: In the same sampling period, the step is fixed.

6. The method according to any one of claims 1 to 5, characterized in that: The coding signal in one coding cycle includes multiple frames of coding signals, and the multiple frames of coding signals include n frames of coordinate coding signals and m frames of pressure coding signals, where n is greater than or equal to 2, and m is greater than or equal to 0.

7. The method according to claim 6, characterized in that The n-frame coordinate coding signals are continuous, and the m-frame pressure coding signals are continuous; Correspondingly, sampling the coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coding sampling signal, including: sampling the coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain continuous n-frame coordinate sampling signals and continuous m-frame pressure sampling signals, wherein the n-frame coordinate sampling signals and the m-frame pressure sampling signals constitute the coding sampling signal; Correspondingly, the pressure data within the sampling period is calculated according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, including: calculating the pressure data within the sampling period according to the phase difference between adjacent frame coordinate sampling signals in n frame coordinate sampling signals within a sampling period, the phase difference between adjacent frame pressure sampling signals in m frame pressure sampling signals, and the phase difference between adjacent coordinate sampling signals and pressure sampling signals in n frame coordinate sampling signals and m frame pressure sampling signals.

8. The method according to claim 1, characterized in that: Also includes: The touch position is calculated according to the coding sampling signal.

9. A signal generation method, characterized in that: include: Phase encoding is performed on the signal to be coded to generate a coding signal, wherein a phase difference is provided between two adjacent frames of coding signals in each coding cycle according to a preset step when performing the phase encoding, and a combination of phase differences between a plurality of adjacent frames of coding signals in one or more coding cycles represents a pressure magnitude; According to the set coding cycle, the coding signal is used to continuously code; Among them, the coding signal is used to be sampled to obtain a coding sampling signal, so as to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, and calculate the pressure size according to the combination of multiple pressure data calculated in one or more sampling periods.

10. The method according to claim 9, characterized in that The phase difference between two adjacent frames of coding signals may be stepped into any one of 45 degrees, 90 degrees, and 180 degrees.

11. The method according to claim 9, characterized in that In the same coding cycle, the stepping is fixed and unchanged.

12. The method according to any one of claims 9 to 11, characterized in that: The coding signal in one coding cycle includes multiple frames of coding signals, and the multiple frames of coding signals include n frames of coordinate coding signals and m frames of pressure coding signals, where n is greater than or equal to 2, and m is greater than or equal to 0.

13. The method according to claim 12, characterized in that: The n-frame coordinate coding signals are continuous, and the m-frame pressure coding signals are continuous.

14. A pressure calculation device, characterized in that: include: The data sampling unit is used to sample the coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coding sampling signal, wherein a phase difference is provided between two adjacent frames of coding signals in each coding period according to a preset step when performing phase encoding, and a combination of phase differences between multiple adjacent frames of coding signals in one or more coding periods represents a pressure magnitude; The pressure calculation unit is used to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, and calculate the pressure size according to the combination of multiple pressure data calculated in one or more sampling periods.

15. A signal generating device, characterized in that: include: The encoding unit is used to perform phase encoding on the signal to be coded to generate a coding signal, wherein when performing phase encoding, a phase difference is provided between two adjacent frames of coding signals in each coding cycle according to a preset step, and a combination of phase differences between multiple adjacent frames of coding signals in one or more coding cycles represents a pressure magnitude; A coding unit, used for continuously coding using the coding signal according to a set coding cycle; Among them, the coding signal is used to be sampled to obtain a coding sampling signal, so as to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, and calculate the pressure size according to the combination of multiple pressure data calculated in one or more sampling periods.

16. An electronic device, characterized in that: It includes the pressure calculation device according to claim 14 or the signal generation device according to claim 15.

17. The electronic device according to claim 16, characterized in that: The electronic device is a stylus pen, and the signal generating device is configured on the stylus pen; correspondingly, the pressure calculating device is configured on the touch screen.

18. A touch control system, characterized in that: It includes a stylus pen and a touch screen, wherein one end of the stylus pen and the touch screen includes a signal generating device, and the other end includes a pressure calculating device; The signal generating device comprises: The encoding unit is used to perform phase encoding on the signal to be coded to generate a coding signal, wherein when performing phase encoding, a phase difference is provided between two adjacent frames of coding signals in each coding cycle according to a preset step, and a combination of phase differences between multiple adjacent frames of coding signals in one or more coding cycles represents a pressure magnitude; A coding unit, used for continuously coding using the coding signal according to a set coding cycle; The coding signal is used to be sampled to obtain a coding sampling signal, so as to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period; The pressure calculation device comprises: The data sampling unit is used to sample the coding signal that has been phase-encoded and continuously coded within a set sampling period to obtain a coding sampling signal; The pressure calculation unit is used to calculate the pressure data within the sampling period according to the phase difference between adjacent frames of the coding sampling signal within the sampling period, and calculate the pressure size according to the combination of multiple pressure data calculated in one or more sampling periods.