CN116048295B - Touch data sending method and touch pen - Google Patents

Touch data sending method and touch pen Download PDF

Info

Publication number
CN116048295B
CN116048295B CN202210912630.0A CN202210912630A CN116048295B CN 116048295 B CN116048295 B CN 116048295B CN 202210912630 A CN202210912630 A CN 202210912630A CN 116048295 B CN116048295 B CN 116048295B
Authority
CN
China
Prior art keywords
signal
time
stylus
touch
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210912630.0A
Other languages
Chinese (zh)
Other versions
CN116048295A (en
Inventor
胡秀银
靳百萍
李毅勃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210912630.0A priority Critical patent/CN116048295B/en
Priority to CN202311612149.0A priority patent/CN117631873A/en
Publication of CN116048295A publication Critical patent/CN116048295A/en
Application granted granted Critical
Publication of CN116048295B publication Critical patent/CN116048295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware

Abstract

The application provides a touch data sending method and a touch pen, relates to the technical field of terminals, and can be used for improving the frequency of response of electronic equipment to touch operation of the touch pen and reducing response time delay. The stylus receives a first signal from the electronic device. After receiving the first signal, the stylus transmits a plurality of segments of third signals before receiving the second signal, and the stylus transmits at least a fourth signal and a fifth signal to the electronic device, the third signal being used to determine position information of the touch operation, the fourth signal and the fifth signal being used to indicate pressure information of the touch operation. The first signal and the second signal are signals for triggering the touch pen to send a third signal twice in succession, and the second signal is after the first signal.

Description

Touch data sending method and touch pen
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for sending touch data and a stylus.
Background
The touch pen is configured for the electronic equipment, so that the use experience of the electronic equipment can be improved. Taking the electronic equipment as a tablet as an example, and configuring the tablet with the touch pen, writing operations such as writing, drawing and the like can be completed on the tablet by using the touch pen, so that the flexibility is higher. However, in the process of interacting with the electronic device, the time delay from the touch of the stylus to the screen of the electronic device to the response of the electronic device to the touch operation is long, so that the use experience of the stylus is poor. For example, a stylus may not display what the stylus writes on the screen of an electronic device until after being touched to the screen of the electronic device for a long period of time.
Disclosure of Invention
In view of this, the application provides a method for sending touch data and a stylus, which can be beneficial to improving the frequency of the electronic equipment responding to the touch operation of the stylus, reducing the response time delay and improving the use experience of the stylus.
In a first aspect, an embodiment of the present application provides a method for sending touch data, where the method is applied to a stylus, where the stylus is communicatively connected to an electronic device (such as a tablet), and the stylus is configured to perform a touch operation on a screen of the electronic device. Wherein the stylus receives a first signal from the electronic device. After receiving the first signal and before receiving the second signal, i.e. in one coding period, the stylus sends a plurality of segments of third signals, and the stylus sends at least a fourth signal and a fifth signal to the electronic device. The third signal is used to determine position information of the touch operation, and the fourth and fifth signals are used to indicate pressure information of the touch operation.
The first signal and the second signal are signals for triggering the touch pen to send a third signal twice in succession, and the second signal is after the first signal. Then, after receiving the first signal, before receiving the second signal, it is: and one coding period.
In summary, in the embodiment of the present application, the stylus pen may transmit the multi-segment third signal and the fourth signal at least twice in one coding period. It should be appreciated that the electronic device can respond to a touch operation according to the third signal and the fourth signal only after each receipt of the fourth signal. Then, the stylus transmits the fourth signal at least twice in one coding period, and the electronic device may respond to the at least two touch operations. Compared with the scheme that only the fourth signal is sent once in one coding period, the scheme of the application can improve the frequency of the electronic equipment responding to touch operation and reduce response time delay. Thus, the problem that the first pen has low ink outlet speed or the response to the quick touch operation is missed due to higher response time delay is solved.
To this end, it should be noted that: the multiple segments of the third signal may be identical or different. The fourth signal and the fifth signal are used for indicating the pressure information of the touch operation, but the pressure information indicated by the fourth signal and the fifth signal are different when the strength of the touch operation is different. For example, the fourth signal indicates a pressure value of 1 unit and the fifth signal indicates a pressure value of 2 units. In addition, in the embodiment of the present application, the fourth signal and the fifth signal are mainly described as examples, and in practice, after the stylus pen receives the first signal, before the stylus pen receives the second signal, signals for indicating pressure information of the touch operation may be transmitted more times, for example, the sixth signal, the seventh signal, and the eighth signal … … may also be transmitted. The embodiment of the present application is not particularly limited thereto.
In one possible design, the method further includes: the stylus acquires a fourth signal from a pressure sensor in the stylus at a first time, and from the first time, the stylus does not transmit the third signal for a continuous period of time exceeding the first time (e.g., 2-3 ms). The stylus acquires a fifth signal from a pressure sensor in the stylus at a second time, and a continuous time period during which the stylus does not transmit the third signal exceeds the first time period from the second time. That is, the pressure signal is acquired from the pressure sensor only when the continuous period in which the third signal is not transmitted is long.
Because the third signal is a high-voltage signal, the sending of the third signal can interfere with the operation of devices such as the pressure sensor, and therefore, a large deviation exists between the fourth signal and the fifth signal collected by the pressure sensor. Based on the above, the stylus pen can acquire the fourth signal and the fifth signal from the pressure sensor under the condition that the third signal is not transmitted for a long time, so that the accuracy of the acquired fourth signal and fifth signal can be prevented from being influenced by transmitting the third signal.
Then, the stylus sends at least a fourth signal and a fifth signal to the electronic device, including: after the fourth signal is obtained, the stylus sends the fourth signal to the electronic device. After the fifth signal is acquired, the stylus sends the fifth signal to the electronic device. In this way, the accuracy of the fourth signal and the fifth signal transmitted to the electronic device can be ensured. Ultimately facilitating a more accurate response to a touch operation.
In one possible design manner, the stylus includes a first chip, a micro-processing unit MCU and a wireless communication module, where the first chip is configured to send a plurality of segments of third signals. The stylus acquires a fourth signal from a pressure sensor in the stylus at a first moment, including: the first chip sends a first notification to the MCU at a first time, the first notification instructs the MCU to acquire a signal indicating pressure information, and the MCU receives a fourth signal from the pressure sensor in response to the first notification. The stylus sending the fourth signal to the electronic device, comprising: and the MCU sends the fourth signal to the electronic equipment through the wireless communication module. And the stylus acquiring a fifth signal from a pressure sensor in the stylus at a second time, comprising: the first chip sends a first notification to the MCU at a second time, the first notification instructing the MCU to acquire a signal indicating pressure information, and in response to the first notification, the MCU acquires a fifth signal from the pressure sensor. The stylus sending the fifth signal to the electronic device, comprising: the MCU sends the fifth signal to the electronic equipment through the wireless communication module.
Because the first chip sends the third signal, the first chip can accurately determine the first moment and the second moment only after receiving the first signal, and therefore the MCU can be informed to acquire the fourth signal and the fifth signal. In this way, it can be ensured that the MCU is acquiring the fourth signal and the fifth signal without transmitting the third signal.
In one possible design, the first notification is a level-flipping signal of the first pin of the first chip, the level-flipping signal including: the signal flipped from high level to low level or the signal flipped from low level to high level, the first pin is connected to the MCU and the first pin is not a pin for transmitting the multi-segment third signal.
The first pin is connected with the MCU, so that the MCU can timely acquire the level overturning signal, the fourth signal can be timely acquired, and the phenomenon that the fourth signal is not timely acquired due to too long notification time delay is avoided. For example, the pressure signal is acquired after the next third signal is started to be transmitted, which may cause the acquired fourth signal to be interfered by the third signal. And the first pin is not used for transmitting the multi-section third signal, so that the situation that the MCU is informed of acquiring the fourth signal due to level change in the process of transmitting the third signal can be avoided.
In one possible design, before the stylus receives the first signal from the electronic device, the method further includes: the stylus receives a first parameter from the electronic device, wherein the first parameter is used for indicating the starting sending moment and the ending sending moment of each section of third signal. The stylus pen sends a plurality of sections of third signals, including: the stylus transmits a plurality of segments of third signals based on the first parameter.
That is, the stylus pen may transmit the third signal based on the start transmission time and the end transmission time of each segment of the third signal indicated by the first parameter, so that the rule of transmitting the third signal may be made to conform to the requirement of the electronic device side.
In one possible design, after the stylus receives the first parameter from the electronic device, the method further includes: the stylus determines, based on the first parameter, at least two time intervals in which the continuous length of time that the third signal is not transmitted exceeds the first length of time. Calculating the interval duration between the starting time point of each time interval and the moment when the touch pen finishes receiving the first signal, and obtaining at least two preset durations, wherein the at least two preset durations comprise a first duration and a second duration. The interval duration between the first time and the time when the touch pen finishes receiving the first signal is the first duration, and the interval duration between the second time and the time when the touch pen finishes receiving the first signal is the second duration.
In one possible design, the electronic device includes a first chip, a micro-processing unit MCU, and a wireless communication module. The stylus receives a first parameter from an electronic device, including: the MCU receives a first parameter from the electronic device through the wireless communication module. The stylus determines, based on the first parameter, at least two time intervals in which the continuous duration of not sending the third signal exceeds the first time, calculates an interval duration between a start time point of each time interval and a time point when the stylus finishes receiving the first signal, and obtains at least two preset durations, where the at least two preset durations include a first duration and a second duration, and includes: the MCU determines at least two time intervals with continuous time length exceeding a first time length without sending a third signal based on a first parameter, calculates the interval time length between the starting time point of each time interval and the moment when the first chip finishes receiving the first signal, and obtains at least two preset time lengths, wherein the at least two preset time lengths comprise a first time length and a second time length. The method further comprises the following steps: and the MCU sends at least two preset time lengths to the first chip. Therefore, the first chip can inform the MCU to acquire the fourth signal and send the fourth signal to the flat plate at least two preset moments according to at least two preset durations determined by the MCU.
In a second aspect, the embodiment of the application also provides a touch pen, which comprises a pressure sensor, a memory and a micro control unit MCU, wherein the pressure sensor and the memory are coupled with the MCU; wherein the pressure sensor is configured to collect signals indicative of pressure information of a touch operation (e.g. the fourth and fifth signals described above), and the memory has stored therein computer program code comprising computer instructions which, when executed by the MCU, cause the stylus to perform the method as in the first aspect and any one of its possible designs.
In one possible design, the stylus further includes a first chip and a wireless communication module. The first chip is used for sending a third signal, and the third signal is used for determining position information of touch operation. The wireless communication module is used for transmitting a signal indicating pressure information of the touch operation and a first parameter, wherein the first parameter is used for indicating a starting transmission time and an ending transmission time of the third signal.
In a third aspect, an embodiment of the present application further provides a communication system, where the communication system includes the stylus and the electronic device in the second aspect and any one of possible design manners of the second aspect, where the stylus is communicatively connected to the electronic device, and the stylus is configured to perform a touch operation on a screen of the electronic device.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium comprising computer instructions which, when run on a stylus, cause the stylus to perform the method as in the first aspect and any one of its possible designs.
In a fifth aspect, embodiments of the present application provide a chip system applied to a stylus including a memory; the system on a chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the interface circuit is used for receiving signals from the memory of the touch pen and sending signals to the processor, wherein the signals comprise computer instructions stored in the memory; when the processor executes the computer instructions, the stylus performs the method as in the first aspect and any one of its possible designs.
In a sixth aspect, the application provides a computer program product for causing a computer to carry out the method as in the first aspect and any one of its possible designs when the computer program product is run on a computer.
It will be appreciated that the advantages achieved by the stylus according to the second aspect, the communication system according to the third aspect, the computer storage medium according to the fourth aspect, the chip system according to the fifth aspect, and the computer program product according to the sixth aspect may refer to the advantages of the first aspect and any one of the possible designs thereof, and are not described herein.
Drawings
FIG. 1A is a schematic diagram of a scene to which embodiments of the present application are applicable;
FIG. 1B is a second schematic view of a scene to which the embodiment of the present application is applied;
FIG. 2A is one of the interactive schematics of a stylus and an electronic device;
FIG. 2B is a second schematic diagram of interaction between the stylus and the electronic device;
FIG. 3A is a diagram illustrating a problem of acquiring a pressure signal in one code period;
FIG. 3B is a diagram illustrating a second problem of acquiring a pressure signal in one code period;
FIG. 4 is a third schematic diagram of interaction between a stylus and an electronic device;
FIG. 5A is a schematic diagram showing the effect of triggering acquisition of multiple pressure signals in one code printing cycle;
FIG. 5B is a second schematic diagram showing the effect of triggering the acquisition of multiple pressure signals in one code printing cycle;
FIG. 6 is a schematic diagram of hardware interaction between a stylus and a tablet according to an embodiment of the present application;
FIG. 7 is a software and hardware architecture diagram of a tablet provided in an embodiment of the present application;
FIG. 8 is a flowchart of the interaction of the hardware modules of the stylus according to an embodiment of the application;
FIG. 9A is a diagram illustrating configuration parameters according to an embodiment of the present application;
FIG. 9B is a second diagram illustrating configuration parameters according to an embodiment of the present application;
FIG. 10 is a schematic diagram of determining a preset duration in an embodiment of the present application;
FIG. 11 is a flowchart of interaction between a stylus and a software and hardware module of a tablet according to an embodiment of the present application;
FIG. 12A is a schematic diagram of a stylus sequentially sending a code signal and a pressure signal according to an embodiment of the present application;
FIG. 12B is a schematic diagram of acquiring a pressure signal by level inversion triggering in an embodiment of the present application;
FIG. 13 is a flowchart of interaction between a stylus and an electronic device according to an embodiment of the present application;
FIG. 14 is a schematic diagram of a touch responsive operation in an embodiment of the application;
fig. 15 is a schematic structural diagram of a system chip according to an embodiment of the present application.
Detailed Description
The touch data transmission method and device provided by the embodiment of the application can be applied to the communication system provided by the embodiment of the application, wherein the communication system comprises the touch pen and the electronic equipment, and the touch pen can execute touch operations such as clicking, sliding, writing and the like on the electronic equipment. The electronic device may be an electronic device supporting interaction with a touch pen, such as a mobile phone, a tablet computer (tablet for short), a notebook computer, etc., and the form of the electronic device is not particularly limited in the embodiment of the present application. The solution of the present application will be mainly described hereinafter by taking the example that the electronic device is a tablet.
Illustratively, taking the stylus as the stylus 100 shown in FIG. 1A, the electronic device as the tablet 101 shown in FIG. 1A, and the touch operation as an example of a writing operation, the stylus 100 performs the writing operation on the screen 102 of the tablet 101 to provide input to the tablet 101, the tablet 101 may respond to the writing operation based on the input of the stylus 100, such as displaying corresponding writing content on the screen 102 of the tablet 101.
Also exemplary, taking the stylus as the stylus 110 shown in fig. 1B, the electronic device as the tablet 111 shown in fig. 1B, and the touch operation as an example of a click operation, the stylus 110 performs a click operation on a "music" icon 113 in a screen 112 of the tablet 111 to provide input to the tablet 111, and the tablet 111 may respond to the click operation, such as displaying an application interface of a music application, based on the input of the stylus 110.
In order to facilitate understanding of the sending of touch data provided by the embodiment of the present application, a simple explanation of an interaction process between a tablet and a stylus will be provided below.
Referring to fig. 2A, the tablet continuously transmits an uplink signal (which may also be referred to as a first signal) in the case of a bright screen, for example, the tablet transmits the uplink signal in a period of 16.667ms (corresponding to 60 HZ), 11.111ms (corresponding to 90 HZ), 8.333ms (corresponding to 120 HZ), etc., which is mainly described herein as 16.667 ms. The up signal may be used to trigger the stylus to send a coded signal (which may also be referred to as a third signal) to the tablet. The coded signal may be used by the tablet to determine the position of the tip of the stylus (which may be referred to simply as the touch position) on the screen of the tablet. After the tip of the stylus approaches the screen of the tablet, e.g., the distance between the tip and the screen is less than or equal to 20 millimeters (mm), an up signal from the tablet may be received. After receiving the uplink signal, the stylus may send a coding signal to the tablet. For example, the stylus may send multiple segments of coded signals to the tablet after each time an uplink signal is received. As shown in fig. 2B, the tablet transmits the uplink signal at a time interval of 16.667ms, and the stylus pen may transmit 8-segment code signals to the tablet after receiving the uplink signal each time.
For convenience of explanation, the period in which the flat panel transmits the uplink signal may be referred to as an uplink period. The stylus transmits the coding signal after receiving the uplink signal every time, and the period of transmitting the coding signal by the stylus should be the same as the uplink period. The period in which the stylus sends the code signal may be referred to as the code signal. For example, the uplink period and the coding period are 16.667ms.
With continued reference to fig. 2A, the stylus may also acquire and send a pressure signal of the tip to the tablet. The pressure signal may be used by the tablet to determine the pressure of the tip of the stylus against the screen of the tablet (which may be referred to simply as the touch pressure). It will be appreciated that the relatively high voltage at which the stylus sends the coded signal to the tablet, typically greater than 20 volts (V), e.g. 40V, may have an effect on the operation of other devices in the stylus, for example, the pressure sensor collecting the pressure signal. Based on this, the stylus typically acquires the pressure signal acquired by the pressure sensor between two code signals that are separated by a longer period of time. As shown in fig. 2B, after receiving the uplink signal, the time interval between the end time of the 4 th segment of code signal and the start time of the 5 th segment of code signal sent to the tablet is longer, and the stylus acquires the pressure signal acquired by the pressure sensor in the time interval and sends the pressure signal to the tablet. Thus, the accuracy of the collected pressure signals can be improved.
After the tablet receives the code printing signal, the touch position can be determined; and after the flat plate receives the code printing signal, the touch pressure can be determined. The tablet may then respond to the stylus's touch operation on the tablet based on the touch location and touch pressure. If the touch pressure is 0, the stylus tip is only closer to the screen of the tablet, but does not touch the screen of the tablet, and the tablet does not need to respond. In a scene of drawing lines on a flat plate by using a touch pen, the larger the touch pressure is, the larger the pressing force of a pen point to the flat plate is, and correspondingly, the thicker the lines drawn by the flat plate are; the smaller the touch pressure is, the smaller the pressing force of the pen point to the flat plate is, and accordingly, the thinner the line drawn by the flat plate is.
In some embodiments, the stylus sends multiple segments of the code signal to the tablet during one code period. As shown in fig. 2B, 8 segments of code signals are respectively transmitted in the 1 st code period and the 2 nd code period. However, the pressure signal is only sent once to the panel within the time interval between two of the plurality of code signals. In the 1 st coding period as shown in fig. 2B, 1 st pressure signal is transmitted between the end time of the 4 th segment coding signal and the start time of the 5 th segment coding signal.
In this embodiment, the panel receives the multi-segment coded signal before receiving the primary pressure signal. Taking fig. 2B as an example, the tablet receives the primary pressure signal after receiving the 1 st-4 th segment of code signal (4 segments of code signal in total) sent by the stylus in the 1 st code period; then, the tablet receives the code transmitting-8 sections of code signals sent by the touch pen in the 1 st code period and receives the 1 st-4 sections of code signals (8 sections of code signals in total) sent by the touch pen in the 2 nd code period, and then can receive the pressure signal again; subsequently, the flat plate can only receive the pressure signal once after receiving 8 sections of code signals.
It should be appreciated that even though the tablet has received the multi-segment code signal and determined the touch location, the touch pressure can only be determined after the pressure signal is received, and then the touch operation of the stylus on the tablet can be responded to according to the touch location and the touch pressure. Then, the tablet responds to the touch operation of the stylus on the tablet only after each time the pressure signal is received. This will lead to the following:
in case one, referring to fig. 3A, the tip of the stylus starts to contact the screen of the tablet at a time between times t0-t1, and starts to draw a line from the point a of the screen to the point B on the screen at time t 1. Because the tablet does not receive the pressure signal at time t0-t1, but only receives the code signal, the tablet does not respond to the scribing operation of the stylus from the point A to the point B before time t1, and therefore the line from the point A to the point B is not displayed. Then, the flat plate can receive a pressure signal from the time t1 to the time t2, and after receiving the pressure signal, the flat plate can respond to the scribing line from the point A to the point B according to the touch position corresponding to the code printing signal received from the time point when the pen point starts to contact the screen to the time t1 and the touch pressure corresponding to the pressure signal received from the time t1 to the time t2, for example, the line from the point A to the point B is displayed around the time t 2. It should be understood that the line from the point a to the point B may be gradually displayed at the time t2 or may be instantaneously displayed, which is not particularly limited in the embodiment of the present application.
With continued reference to fig. 3A, it should be understood that the stylus still continues to scribe on the screen between times t1-t2, such as from point B to point C, and the tablet cannot determine the trajectory of the point B to point C due to the tablet not receiving the coding signal between times t1-t2, which may result in temporary failure of the scribe from point B to point C.
Based on the example of fig. 3A, although the stylus is drawing lines on the screen of the tablet from a certain time between the times t0-t1, the tablet can only receive the pressure signal after the time t1 and display drawn lines approximately before and after the time t2, so that the response delay is high. Taking 16.667ms as an example of a coding period, the time interval between t0 and t2 is up to one coding period, and if the stylus starts scribing from the time t0 between the time t0 and t1, the time delay is about 16ms at most. That is, in a period of time when the pen tip of the stylus starts to contact the screen of the tablet, the tablet cannot display the corresponding line in time along with the handwriting change of the stylus in real time, and there is a high delay. It will be appreciated that the later the stylus starts scribing between times t0-t1, the less time delay will be.
In case two, referring to fig. 3B, the tip of the stylus starts to contact the screen of the tablet at a time between times t0-t1, clicks the play button in the screen, and leaves the screen before time t1, as shown by the dashed stylus in fig. 3B. That is, at time t1, the tip of the stylus has not contacted the screen. Then the touch pressure corresponding to the pressure signal received by the tablet at times t1-t2 should be 0. Correspondingly, the flat panel does not play the video according to the touch position corresponding to the coding signal received between the time t0 and the time t1 and the touch pressure corresponding to the pressure signal received between the time t1 and the time t 2. For example, at time t2, the tablet remains in a state of pausing the playing of video.
As can be seen from the example of fig. 3B, although the tip of the stylus performs a clicking operation on the play button on the screen of the tablet between times t0-t1, the tip of the stylus has left the screen before time t1 because the clicking operation has a very short time to contact the screen. The touch pen acquires the pressure signal acquired by the pressure sensor and sends the pressure signal to the flat plate between the time t1 and the time t2, so that the touch pressure corresponding to the pressure signal received by the flat plate is 0. The tablet will not respond to the rapidly performed click operation. Thereby missing some of the touch operation of the stylus on the tablet.
Based on the above-mentioned problems, in the embodiment of the present application, the stylus may send multiple segments of code signals (i.e., multiple segments of third signals) in one code period, and may trigger to acquire at least two pressure signals acquired by the pressure sensor, and send the pressure signals to the tablet after each time the pressure signals are acquired. The at least two pressure signals include at least a fourth signal and a fifth signal, and if the at least two pressure signals are three or more, the at least two pressure signals may further include a sixth signal, a seventh signal, and an eighth signal … …. The embodiment of the present application is not particularly limited thereto. It will be appreciated that the pressure signal is transmitted at least twice in one coding period, i.e. twice in the period between two consecutive receptions of the uplink signal. For convenience of explanation, an uplink signal received first from among the two consecutive uplink signals may be referred to as a first signal, and an uplink signal received later may be referred to as a second signal. Illustratively, the first signal is a first segment of the upstream signal transmitted by the tablet shown in fig. 4. The second signal is the second segment uplink signal sent by the tablet shown in fig. 4. The third signal includes 8-segment code signals of 1 st-4 th segment and 5 th-8 th segment transmitted by the stylus pen in the 1 st code period shown in fig. 4. The fourth signal is the pressure signal sent by the stylus of fig. 4 for the first time in the 1 st coding period. The fifth signal is the pressure signal sent by the stylus pen shown in fig. 4 for the second time in the 1 st coding period.
With continued reference to fig. 4, the stylus may send 8-segment code signals each time after receiving an uplink signal from the tablet, and acquire and send one pressure signal to the tablet between the end time of the 4-segment code signal and the start time of the 5-segment code signal, and acquire and send another pressure signal after the end time of the 8-segment code signal. Correspondingly, after the pressure signal is received by the panel each time, the touch operation of the touch pen on the panel can be responded, so that the frequency of the touch operation of the panel can be improved, and the response time delay is reduced. In this way, it is advantageous to avoid the occurrence of the first and second cases.
For example, referring to FIG. 5A, the tip of the stylus begins to contact the screen of the tablet at a time between times t0-t3, and begins scribing from point A of the screen, drawing at point D on the screen at time t 3. Because the tablet does not receive the pressure signal between times t0 and t3, but only receives the code signal, the tablet does not respond to the scribing operation of the stylus from the point A to the point D before the time t3, and therefore the line from the point A to the point D is not displayed. Then, the flat panel can receive a pressure signal from time t3 to time t4, and after receiving the pressure signal, the flat panel can respond to the scribing line from the point A to the point D according to the touch position corresponding to the code printing signal received from the time when the pen point starts to contact the screen to time t3 and the touch pressure corresponding to the pressure signal received from time t3 to time t4, for example, the scribing line from the point A to the point D is displayed around time t 4. It should be understood that the line from the point a to the point D may be gradually displayed at the time t4 or may be instantaneously displayed, which is not particularly limited in the embodiment of the present application.
With continued reference to fig. 5A, it should be understood that the stylus still continues to scribe on the screen between times t3-t4, such as from point D to point E, and the tablet cannot determine the trajectory of the point D to point E due to the tablet not receiving the coding signal between times t3-t4, which may result in temporary failure of the scribe line from point D to point E.
In the example of fig. 5A, the tip of the stylus starts to contact the screen of the tablet from a point in time between time t0 and time t3, and a drawn line can be displayed around time t 4. Taking 16.667ms as an example of the code period, the time interval between t0 and t4 is about half of the code period, and if the stylus starts scribing from the time t0, the time delay is only about 8ms at maximum. It will be appreciated that the later the stylus starts scribing between times t0-t3, the less time delay will be. It is apparent that the delay in fig. 5A is reduced by half compared to the delay in fig. 3A described above, with the highest delay reduced by half. Therefore, after the pen point of the touch pen starts to contact the screen of the flat plate, corresponding lines can be displayed more timely along with handwriting change of the touch pen.
As another example, referring to fig. 5B, the tip of the stylus starts to contact the screen of the tablet at a time between time t0 and time t3, and clicks the play button in the screen, so long as the tip of the stylus does not leave the screen within a time period close to time t3, the stylus may acquire a pressure signal of the stylus performing a clicking operation on the screen between time t3 and time t4 and send the pressure signal to the tablet. Then, the flat panel can play the video according to the touch position corresponding to the code signal received between the time t0 and the time t3 and the pressure signal received between the time t3 and the time t 4. For example, before and after time t4, the tablet will play the video.
In the example of fig. 5B, the tip of the stylus starts to contact the screen of the tablet from a point in time between t0-t3, but as long as the tip does not leave the screen within a period of time in the vicinity of time after t3, the tablet may detect the click of the play button by the stylus, so that the response is not missed. In the example of fig. 3B, it is necessary that the pen tip does not leave the screen in an adjacent period of time after time t1, so that the tablet does not miss the response. It is apparent that the likelihood of missing a response may be reduced in fig. 5B as compared to the aforementioned fig. 3B.
Referring to fig. 6, a hardware interaction diagram of a tablet and a stylus according to an embodiment of the present application is provided.
As shown in fig. 6, the stylus may include: a micro-processing unit (micro controller unit, MCU) 601, a first communication module 602, a coding chip 603, a sensor module 604, a charging module 605 and a battery 606. The sensor module 604 may include, but is not limited to, a pressure sensor 614 and an acceleration sensor 624. A touch panel 607 and a second communication module 608 may be included in the tablet. Touch panel 607 can further include touch sensor (Touch panel sensor, TP sensor) 617 and touch micro-electronics (Integrated Circuit, IC) chip 627.
The first communication module 602 in the stylus and the second communication module 608 in the tablet may be wireless communication modules such as wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network) modules, bluetooth (BT) modules, or near field communication (near field communication, NFC) modules, which are not limited in this embodiment of the present application. Herein, the first communication module 602 and the second communication module 608 are both bluetooth modules, that is, the first communication module 602 is a first bluetooth module, and the second communication module 608 is a second bluetooth module. It should be appreciated that the stylus and tablet may establish a wireless pathway through the first communication module 602 and the second communication module 608. For example, a bluetooth path may be established between the stylus and the tablet that may be used to transfer information between the stylus and the tablet, such as transfer configuration parameters, pressure signals, and the like. The configuration parameters are used to instruct the stylus to send the coding signal according to a certain rule, such as sending the coding signal according to the rule shown in fig. 4.
The TP sensor617 in the above-mentioned flat panel is composed of an electrode array including a plurality of electrodes arranged in rows and columns. The code printing chip 603 in the stylus is disposed at the pen tip, and the code printing chip 603 includes an electrode for sending and receiving signals. In addition, an insulating material (such as air or cover glass) exists between the electrode in the code chip 603 and the electrode of the TP sensor617, so that a capacitance can be formed between the electrode in the code chip 603 and the electrode of the TP sensor 617. That is, a capacitance may be formed between the tip of the stylus and the TP sensor617 of the tablet. So that the tip of the stylus and the TP sensor617 in the tablet can establish a circuit connection through capacitance. In order to distinguish the wireless path, a path between the tip of the stylus and the TP sensor617 in the tablet may be referred to as a circuit path.
After the circuit path is established, the stylus and the tablet can exchange signals through the circuit path. Illustratively, the TP sensor 617 in the tablet may send an upstream signal to the stylus via a circuit path. Also exemplary, the coding chip 603 in the stylus may send coding signals to the tablet through the circuit path. Wherein, the code signal and the uplink signal are generally square wave signals.
The TP sensor 617 in the tablet is used to collect touch information, where the touch information may include: the stylus touches the information of the screen of the tablet and the information of the user (such as the user's finger or finger joint, etc.) touching the screen. In the embodiment of the present application, the touch information mainly refers to information of a touch operation of a pen tip of a stylus on a screen, such as a code signal, and the touch IC chip 627 may determine a touch position based on the touch information collected by the TP sensor 617.
Illustratively, the tip of the stylus is close to the screen of the tablet, and the encoding chip 603 may receive the uplink signal sent by the tablet. Then, the signal (such as the coding signal) sent by the coding chip 603 to the TP sensor 617 in the tablet through the circuit path may cause the variation of the capacitance sampling value of each electrode in the electrode array of the TP sensor 617 to change, and the closer the tip of the stylus is, the larger the variation of the capacitance sampling value of the electrode. The touch IC chip 627 in the screen may determine the touch position based on the variation of the capacitance sampling value of each electrode in the electrode array of the TP sensor 617, for example, the touch IC chip 627 may use the position where the variation of the capacitance sampling value on the TP sensor 617 is maximum as the position of the stylus on the screen. For a specific implementation of determining a touch position according to a variation of a capacitance sampling value in the touch screen, reference may be made to the description in the related art, which is not repeated herein.
The pressure sensor 614 in the stylus may be disposed at a tip of the stylus for collecting a pressure signal of the tip. For example, when the tip of the stylus contacts the screen of the tablet, the pressure sensor 614 may collect a pressure signal generated by the screen squeezing the tip. The stylus may send pressure signals to the tablet via a wireless path. Thereby facilitating the determination of touch pressure by the tablet.
The acceleration sensor 624 in the stylus may be used to collect three-axis acceleration values of the stylus, where the three-axis acceleration values include: acceleration values in the X-axis, Y-axis and Z-axis. The acceleration sensor 624 may also send triaxial acceleration values to the MCU 601. Thus, the MCU601 may obtain information such as an inclination angle and a motion state of the stylus based on the triaxial acceleration value, where the motion state is used to represent that the stylus is in a stationary state or a non-stationary state. MCU601 may also be used to control the operation of the corresponding components in a stylus based on acceleration values collected by acceleration sensor 624. Illustratively, the MCU601 determines that the stylus is in a flat state, and the MCU601 may control the coding chip 603, the pressure sensor 614, and the like to stop working. Thereby reducing the power consumption of the stylus.
The charging module 605 in the stylus may be used to receive a charging input to charge the battery 606 in the stylus. Also, the charging module 605 may be used to power components in the tablet (e.g., MCU 601) while charging the battery 606.
It should be understood that the hardware structure of the stylus and the hardware structure of the tablet shown in fig. 6 are only an example, and in actual implementation, modules may be added or subtracted according to requirements, or one or more of the above modules may be combined. The embodiment of the present application is not particularly limited thereto.
Subsequently, after receiving the coding signal and the pressure signal sent by the touch pen, the tablet responds to the touch operation according to the coding signal and the pressure signal.
The software system of the tablet may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this document, a software structure of a tablet will be mainly exemplified by an Android system of a hierarchical architecture. The layered architecture divides the software system of the tablet into a plurality of layers, each layer has clear roles and division, and the layers are communicated through software interfaces.
Referring to fig. 7, the software and hardware structure of the android system may include: application layer (applications), application framework layer (application framework), hardware abstraction layer (kernel), driver layer, and hardware.
The application layer may include an application package. By way of example, the application layer may include: memos, cameras, gallery, calendar, talk, map, navigation, bluetooth, music, video, short message, etc. Collectively referred to as an application in fig. 7.
In some embodiments, the stylus may perform a touch operation at an application interface of the application program, the touch operation may be a click operation, a long press operation, a slide operation, or the like, or the touch operation may be a writing operation.
The application framework layer may include: an interposer (inputflinger) and a bluetooth service. In some embodiments, the interposer may receive the point data from the underlying layer (e.g., the hardware abstraction layer) and report the point data to the upper layer (i.e., the application layer). Illustratively, the point-of-report data includes a touch position and a touch pressure of a touch operation of the stylus on the application program, and the like. The bluetooth module may be used to transmit information, such as pressure signals, communicated via a bluetooth path.
An input subsystem and a touch Daemon (TP Daemon) may be included in the hardware abstraction layer. In some embodiments, the input subsystem may receive the report point data synthesized by TP Daemon and report the report point data to an upper layer (e.g., an application framework layer). TP Daemon may process touch location and pressure signals from an underlying layer (e.g., a driver layer) to obtain point data.
The driver layer may include a touch IC chip, a touch driver, a bluetooth driver, a human interface device (Human Interface Device, HID) driver, and an input driver. In some embodiments, bluetooth drivers, HID drivers, input drivers may be used to report pressure signals to an upper layer (e.g., a hardware abstraction layer). The touch driver may be used to report the touch location to an upper layer (e.g., a hardware abstraction layer).
The hardware may include a touch sensor (TP sensor) and a bluetooth module, see the description of fig. 6 above.
The following will describe the specific implementation of transmitting the pressure signal at least twice in one coding period by combining the software and hardware structures shown in fig. 6 and 7, so that the frequency of the response touch operation is increased and the response time delay is reduced.
Firstly, the touch pen needs to determine at least two preset durations according to configuration parameters sent by the flat plate, and the at least two preset durations can be used for triggering and acquiring at least two pressure signals in one coding period by the coding chip and sending the pressure signals to the flat plate. Specifically, as shown in fig. 8, the method comprises the following steps:
s801, after Bluetooth connection of a touch pen and a tablet is established, a first Bluetooth module receives configuration parameters from the tablet, wherein the configuration parameters are used for indicating to send coding signals.
The configuration parameters (may also be referred to as first parameters) may include a parameter indicating a start time of each segment of the coding signal, and a parameter indicating an end time of each segment of the coding signal, so as to indicate that the coding chip transmits multiple segments of the coding signal after receiving the uplink signal each time. For example, the configuration parameter may indicate that the coding chip transmits the multi-segment coding signal according to the rule shown in fig. 9A after receiving the uplink signal each time.
In some embodiments, the configuration parameters may include parameters indicating a start time of the first segment of the encoded signal. For example, the configuration parameter is a time interval between an end time (which may be denoted as t 5) of receiving the uplink signal and a start time of transmitting the first segment of the coded signal, as a1 shown in fig. 9A. The configuration parameters may also include the time width of each segment of the encoded signal, as shown at c1 in FIG. 9A. The configuration parameters may also include a time interval between adjacent two encoded signals. For example, the time interval between the start time, the middle time or the end time of the previous section of code signal and the start time, the middle time or the end time of the next section of code signal in the two adjacent sections of code signals. For example, the time interval between two adjacent segments of the encoded signal may be b1 as shown in fig. 9A. For another example, the time interval between two adjacent encoded signals may be d as shown in fig. 9A.
In other embodiments, the stylus transmits the encoding signal during an encoding time slot. A coding slot is a time width that can be used to transmit a coded signal. One coding period includes a plurality of coding slots, and as shown in fig. 9B, one coding period includes 11 coding slots. The configuration parameters may indicate that the encoded signal is transmitted in some of the encoded time slots and not in others of the encoded time slots.
In this embodiment, the configuration parameters may include parameters indicating the start time of the first encoding slot. For example, the configuration parameter is a time interval between an end time (which may be denoted as t 5) of receiving the uplink signal and a start time of transmitting the first segment of the coded signal, as shown in a2 of fig. 9B. The configuration parameters may also include the time width of each encoding slot, as shown in fig. 9B, c2. The configuration parameters may also include the time interval between two adjacent encoding slots. Illustratively, the time interval between two adjacent encoding slots may be: and the time interval between the starting time, the middle time or the ending time of the former coding time slot and the starting time, the middle time or the ending time of the latter coding time slot in the two adjacent coding time slots. For example, the time interval between two adjacent encoding slots may be B2 shown in fig. 9B, which is the time interval between the start time of the previous encoding slot and the start time of the next encoding slot.
And, the configuration parameters further include a code sequence (which may be denoted as X) for indicating whether or not to transmit the coded signal in each of the coded time slots. For example, X is 11110011110 shown in fig. 9B, where "1" indicates that the code signal is transmitted and "0" indicates that the code signal is not transmitted, 11110011110 may indicate that the code signal is transmitted in the 1 st to 4 th code slots, the code signal is not transmitted in the 5 th to 6 th code slots, the code signal is transmitted in the 7 th to 10 th code slots, and the code signal is not transmitted in the 11 th code slot.
It should be noted that, the time width of the coding time slot is the same as the time width of the coding signal, that is, c2=c1; and, the time interval between two adjacent coding time slots is the same as the time interval before two adjacent coding signals, i.e. b2=b1. If the coded signal is transmitted in the first coded slot, a2=a1. And d= (k+1) b2-c2, k is the number of coding slots (which may be simply called idle coding slots) between two coding slots transmitting coding signals, where no coding signal is transmitted. For example, in fig. 9B, d= (2+1) B2-c2 between the 4 th and 7 th coding slots, and the number 2 is the number of idle coding slots (i.e., the 5 th and 6 th coding slots) between the 4 th and 7 th coding slots.
Hereinafter, the configuration parameters shown in fig. 9B will be mainly taken as an example, that is, the configuration parameters include a2, B2, c2, and X, to describe the scheme of the present application.
In addition, the configuration parameters may further include a period length of the coding period, where the period length may be used for the MCU in the stylus to subsequently determine a preset time for acquiring the pressure signal.
It should be understood that the foregoing rules of sending the coding signal shown in fig. 9A and fig. 9B are merely exemplary, and are not limited to these examples. The tablet can send corresponding configuration parameters to the touch pen according to actual demands, so that the coding chip can send coding signals meeting corresponding rules according to the configuration parameters. For example, the configuration parameter may also indicate that 10 code signals are transmitted in each code period, and that each time two code signals are transmitted, a longer time interval is required, and then the next two code signals are transmitted in sequence.
S802, the first Bluetooth module sends configuration parameters to the MCU.
S803, the MCU determines at least two preset durations according to the configuration parameters, wherein the at least two preset durations are used for determining preset moments for acquiring the pressure signals.
For example, if a preset duration is the time interval between t5 and t6 in fig. 10, the coding chip may acquire the pressure signal when the time interval from the end time of receiving the uplink signal is the preset duration.
Based on the foregoing, the sending of the coding signal affects the accuracy of pressure signal acquisition, so it is necessary to acquire the pressure signal acquired by the pressure sensor in a gap where the coding signal is not sent, thereby improving the accuracy of the acquired pressure signal. Also, it takes a period of time from the determination of the acquisition pressure signal to the final acquisition of the pressure signal, and thus a relatively sufficient time is required for the acquisition of the pressure signal.
Based on this, the MCU may determine, according to the configuration parameters, a time interval in which the continuous duration of not transmitting the coding signal exceeds the first time length (e.g., 2ms, 3ms, etc.), and take the starting time of the time interval as the starting time point. Then, the MCU calculates the time interval between the starting time point and the ending time of the uplink signal as a preset duration. The end time of the uplink signal refers to the time when the coding chip ends receiving the uplink signal, such as time t5 in fig. 10.
The process of determining the start time point (denoted as the first step) and the preset time period (denoted as the second step) will be described below, respectively:
in a first step, a starting point in time is determined. The continuous time period during which the coded signal is not transmitted is divided into the following three cases:
in the first case, there is no space between two coding signals for idle coding time slots, for example, the values of two adjacent bits in the coding sequence are 1. In this case, the continuous length of time during which the coded signal is not transmitted is b2-c2, but the value of b2-c2 is typically small, insufficient to reach the first length of time, and therefore not available for acquiring the pressure signal. Taking the first duration as 2ms, b2=1191us, c2=300 us, and the code time slot and the code sequence as shown in fig. 10 as examples, the values of the corresponding 2 nd code time slot and the 3 rd code time slot in the code sequence are all 1, which means that the 2 nd code time slot and the 3 rd code time slot need to transmit code signals, and the continuous duration of no code signal transmission between the 2 nd code time slot and the 3 rd code time slot is b 2-c2=891 us, which is less than 2ms, and cannot be used for acquiring pressure signals.
In the second case, an idle coding time slot is spaced between two coding signals, for example, a space of 0 is spaced between two 1's in the coding sequence. In this case, the continuous duration of not transmitting the coding signal is (k+1) ×b2-c2, k is the number of idle coding slots between two coding slots transmitting the coding signal, and k is an integer greater than or equal to 1. It can be seen that the greater k, the longer the continuous length of time that the coded signal is not transmitted.
Still taking the first duration as 2ms, b2=1191us, c2=300 us, and the code time slot and the code sequence as shown in fig. 10 as an example, the value of the 4 th code time slot and the 7 th code time slot in the code sequence is 1, and the value of the 5 th code time slot and the 6 th code time slot is 0, which indicates that the 4 th code time slot and the 7 th code time slot are to transmit the code signal, and the 5 th code time slot and the 6 th code time slot are not to transmit the code signal, if the continuous duration of not transmitting the code signal between the 4 th code time slot and the 7 th code time slot, that is, the time length between t6-t7 is (2+1) ×b2-c2=3273 us, and exceeds 2ms, then t6 can be taken as a starting time point.
In the third case, no coding signal is transmitted between the last coding signal in one coding period and the first coding signal in the next coding period. In this case, the continuous time period during which the code signal is not transmitted is T-L. T is the period length of the coding period, L is the time interval between the beginning time of the 1 st coding time slot for transmitting the coding signal in one coding period and the ending time of the last coding time slot for transmitting the coding signal in the coding period. And, l= (m-1) ×b2+c2, m is the number of coding slots from the 1 st coding slot for transmitting the coding signal in one coding period to the last coding slot for transmitting the coding signal in the coding period.
Still taking the first duration as 2ms, b2=1191us, c2=300 us, and the code time slot and code sequence as shown in fig. 10, and taking t= 16.667ms as an example, the 1 st code time slot for transmitting the code signal in one code period is the 1 st code time slot, the last code time slot for transmitting the code signal is the 10 th code time slot, then m=10, l= (10-1) ×b2-c2=10.419ms, T-l= 16.667ms-10.419 ms= 6.248ms, i.e. the time interval between T8-T9 is 6.248ms, and T8 can be taken as a starting time point if T8 exceeds 2 ms.
Through the above process, at least two starting time points in one coding period can be determined. For example, the time t6 and the time t8 in fig. 10 may be determined as the start time point.
And step two, determining a preset duration. That is, the time interval between the start time point and the end time point of the uplink signal is calculated. Taking the example that the starting time point includes the time t6 and the time t8 in fig. 10, a time interval between t5 and t6 and a time interval between t5 and t8 can be calculated.
Thus, the MCU can determine at least two preset durations in one coding period, so that the acquisition of pressure signals twice in one coding period can be indicated, and the moment of acquiring the pressure signals can be ensured not to be interfered by transmitting the coding signals.
S804, the MCU sends configuration parameters and at least two preset durations to the coding chip.
S805, the coding chip receives the configuration parameters and at least two preset durations.
The configuration parameters are used for indicating the code printing chip to send code printing signals, and each preset duration is used for indicating the code printing chip to trigger to acquire the pressure signals when the time interval from the end time of the uplink signals is the preset duration.
It should be noted that, in the foregoing embodiment, the end time of the uplink signal is mainly taken as the reference time point, and the time interval between the reference time point and the start time point is calculated as the preset duration, and then is used to determine the preset time for acquiring the pressure signal. In practice, the present invention is not limited thereto. For example, the starting time or the ending time of the first segment of the code signal may be sent in one code period as the reference time point, or the starting time or the ending time of the first code time slot in one code period may be used as the reference time point. Correspondingly, the acquisition of the pressure signal should be triggered at a time interval of a preset duration from the corresponding reference point.
And, in the foregoing embodiment, when the preset time period is determined, the start time point refers to the start time of a time interval in which the continuous time period in which the coding signal is not transmitted exceeds the first time period (e.g., 2ms, 3ms, etc.). In practical implementation, the method is not limited to this. In other embodiments, the starting time point may also refer to a time point that is close to the starting time point after the starting time point in the above time interval. Therefore, the pressure signal acquired by the touch pen from the pressure sensor can be more ensured to be the pressure signal acquired by the pressure sensor at the moment when the coding signal is not transmitted.
Then, the coding chip can send a plurality of sections of coding signals in one coding period based on configuration parameters each time the coding chip receives an uplink signal, and trigger the MCU to acquire at least two times of pressure signals in one coding period based on at least two preset time lengths and send the pressure signals to the flat plate, so that the flat plate can improve the frequency of responding to touch operation and reduce response time delay. As shown in fig. 11, the specific implementation in one coding period includes the following steps:
s1101, the touch sensor transmits an uplink signal.
The panel periodically sends an uplink signal through the touch sensor when the panel is on.
S1102, the coding chip receives the uplink signal.
When the nib of the stylus approaches the screen of the tablet, the coding chip arranged at the nib can receive the uplink signal.
S1103, the coding chip determines at least two preset moments according to at least two preset durations, wherein the at least two preset moments comprise a first moment and a second moment.
And the coding chip is respectively added with at least two preset time periods on the basis of a reference time point (such as the end time of an uplink signal), so that at least two preset time periods can be obtained, wherein the at least two preset time periods are all the time periods for acquiring the pressure signal.
For example, when the end time of the uplink signal is the time t5 shown in fig. 12A, and at least two preset durations include a first duration x1 and a second duration x2, the first time is the time t5+x1, as shown in fig. 12A at time t 6'; the second time is time t5+x2, as shown in fig. 12A at time t 8'.
After that, the coding chip can send coding signals according to a certain rule according to the configuration parameters. Specifically, the coding chip may start transmitting the coding signal according to a parameter indicating a start time of each segment of the coding signal in the configuration parameter, and end transmitting the coding signal according to a parameter indicating an end time of each segment of the coding signal in the configuration parameter. So that the code signal can be sent according to a certain rule. In this embodiment, taking the configuration parameter to instruct the coding chip to transmit the coding signal according to the rule shown in fig. 9B in one coding period as an example. That is, x= 111 1001 1110, thereby indicating that in one coding period, the coding chip continuously transmits four coding signals in the 1 st to 4 th coding time slots, then does not transmit coding signals in the 5 th to 6 th coding time slots, then continuously transmits four coding signals in the 7 th to 10 th coding time slots, and finally does not transmit coding signals in the 11 th coding time slots.
And the coding chip can trigger to acquire the pressure signal according to at least two preset moments.
S1104a, the coding chip sends a first section of coding signal according to the configuration parameters.
For example, as shown in fig. 12A, the coding chip starts to transmit the first segment of the coding signal at a time interval a2 from t5, that is, at a time t5+a2, and ends to transmit the first segment of the coding signal at a time interval a2+c2 from t5, that is, at a time t5+a2+c2, according to "1" of the first bit in X.
Because the nib of the stylus is close to the screen of the panel, the touch sensor (arranged on the screen of the panel) can receive the code printing signals sent by the code printing chip (arranged on the nib), so that the capacitance of each electrode in the electrode array of the touch sensor can be changed, and the touch sensor can obtain the capacitance of each electrode through scanning, so that a capacitance sampling value is obtained. As shown in the following S1104 b-S1105:
s1104b, the touch sensor receives the first segment of the coding signal.
It should be noted that, the touch IC chip in the panel may drive the touch sensor to scan in a time period aligned to each coding time slot according to the configuration parameter to obtain a capacitance sampling value, so that the touch sensor may scan the capacitance sampling value generated by the coding chip sending the coding signal.
S1105, scanning by a touch sensor to obtain a capacitance sampling value 1 corresponding to the first section of code signal.
For example, in one coding period, the touch IC chip may drive the touch sensor to scan for a first time at a time between an interval duration a2 to a2+c2 after the end of sending the uplink signal to obtain a capacitance sampling value, thereby obtaining a capacitance sampling value 1.
S1106, the touch sensor sends the capacitance sampling value 1 to the touch IC chip.
S1107a, the coding chip sends a second section coding signal according to the configuration parameters.
For example, as shown in fig. 12A, according to "1" of the second bit in X, the encoding chip starts to transmit the second segment of the encoding signal at a time interval of a2+b2 from t5, that is, at a time interval of t5+a2+b2, and ends to transmit the second segment of the encoding signal at a time interval of a2+b2+c2 from t5, that is, at a time interval of t5+a2+b2+c2.
S1107b, the touch sensor receives the second section code signal.
S1108, scanning by the touch sensor to obtain a capacitance sampling value 2 corresponding to the second section of code signal.
For example, the touch IC chip may drive the touch sensor to scan for a capacitance sample value in a period b2 after scanning for the first time to obtain a capacitance sample value, and then scan for a capacitance sample value 2 at the end of the first period.
S1109, the touch sensor transmits the capacitance sampling value 2 to the touch IC chip.
S1110, the touch IC chip calculates a touch position 1 according to the capacitance sampling value 1 and the capacitance sampling value 2.
It will be appreciated that the path traveled by the coded signal in the environment (e.g., air) may be affected by the environment, and that there may be occasional deviations in the touch location determined at a time. Based on this, the touch IC chip can calculate a touch position based on the plurality of capacitance sampling values. For example, an average position of touch positions respectively corresponding to the plurality of capacitance sampling values may be calculated. Taking the capacitance sampling value for multiple times as an example, the touch IC chip can calculate the average value of the x coordinate value of the touch position corresponding to the capacitance sampling value 1 and the x coordinate value of the touch position corresponding to the capacitance sampling value 2 to obtain the x coordinate value of the touch position 1; and calculating an average value of the y coordinate value of the touch position corresponding to the capacitance sampling value 1 and the y coordinate value of the touch position corresponding to the capacitance sampling value 2 to obtain the y coordinate value of the touch position 1. Therefore, the accuracy of the determined touch position can be improved.
Of course, in other embodiments, the touch IC chip may also calculate a touch location from each received capacitance sample value. The embodiment of the present application is not particularly limited thereto.
S1111, the touch IC chip reports the touch position 1 to the touch daemon.
After that, the coding chip may also send a third segment of coding signal according to the configuration parameters. As shown in fig. 12A, the coding chip starts to transmit the third segment of coding signal at a time interval of a distance t5 equal to a2+2×b2, that is, t5+a2+2×b2, and ends to transmit the third segment of coding signal at a time interval of a distance t5 equal to a2+2×b2+c2, that is, t5+a2+2×b2+c2 according to "1" of the third bit in X. The touch sensor can scan and send a capacitance sampling value 3 corresponding to the third section of code signal to the touch IC chip. The coding chip can send a fourth section of coding signal according to the configuration parameters. As shown in fig. 12A, the coding chip starts to transmit the fourth segment of coding signal at a time interval of a distance t5 of a2+3×b2, that is, t5+a2+3×b2, and ends to transmit the fourth segment of coding signal at a time interval of a distance t5 of a2+3×b2+c2, that is, t5+a2+3×b2+c2 according to "1" of the fourth bit in X. The touch sensor can scan and send a capacitance sampling value 4 corresponding to the fourth segment of code signal to the touch IC chip. After receiving the capacitance sampling value 3 and the capacitance sampling value 4, the touch control IC chip can calculate and obtain a touch position 2. Then, similar to S1111 described above, the touch IC chip may perform S1112 described below.
S1112, the touch IC chip reports the touch position 2 to the touch daemon.
S1113, the coding chip informs the MCU to acquire a pressure signal at the first moment. For ease of explanation, a notification informing the MCU to obtain the pressure signal may be referred to herein as a first notification.
Taking the example that the first time is the time t6 'in fig. 12A, the time at which the sending of the fourth segment of the code signal ends as shown in fig. 12A is just the time t6', which indicates that the code signal will not be sent for a longer period of time (for example, the duration exceeding the first duration), the code chip may inform the MCU to acquire the pressure signal. So that it can be ensured that the pressure signal is not disturbed by the code signal.
In some embodiments, when the current time is the first time, the coding chip can flip the level of the first pin of the coding chip, so as to inform the MCU to acquire the pressure signal. Wherein the first pin is not a pin for coding (including generating and transmitting coding signals) so that the level inversion does not affect coding. The level inversion includes: the current is high level, and the current is turned to low level; or, currently, low, then toggles high. And, first pin links to each other with MCU, and correspondingly, MCU can detect the level upset of first pin. That is, if the MCU detects a signal of level inversion of the first pin, it is necessary to acquire the pressure signal.
For example, as shown in fig. 12B, when the first time is t6', the level of the first pin may be flipped from a high level to a low level when the current time is t6', so that the MCU may be instructed to acquire the pressure signal.
It should be appreciated that pressure sensors typically collect pressure signals in real time. In this embodiment, the MCU acquires the latest acquired pressure signal from the pressure sensor only after each time of receiving the notification of acquiring the pressure signal, so that the pressure signal acquired by the pressure sensor when the code-encoding chip does not transmit the code-encoding signal can be acquired.
S1114, the MCU acquires the pressure signal 1 from the pressure sensor.
Illustratively, the pressure signal 1 is the pressure signal acquired after the fourth segment of the encoded signal in fig. 12A.
S1115, the MCU sends a pressure signal 1 to the first Bluetooth module.
S1116, the first Bluetooth module sends a pressure signal 1 to the second Bluetooth module.
S1117, the second bluetooth module transmits the pressure signal 1 to the input drive.
It should be appreciated that the second bluetooth module, after receiving the pressure signal 1, may be transmitted to the input driver via one or more of the bluetooth driver, bluetooth service, and HID driver.
S1118, the input driver reports the pressure signal 1 to the touch daemon.
It should be noted that, in general, the touch daemon receives the primary pressure signal (e.g., the pressure signal 1) reported by the second bluetooth module after receiving one or more touch positions (e.g., the touch position 1 and the touch position 2) reported by the touch IC chip. Also, both touch position and pressure signals are required to respond to a touch operation. Thus, the touch daemon needs to determine the tick data for responding to a touch operation after each receipt of a pressure signal, as shown in S1119 and S1137 below.
S1119, the touch daemon generates report data 1 according to the touch position 1, the touch position 2 and the pressure signal 1 in response to receiving the pressure signal 1.
The touch daemon can assign the pressure signal 1 to the touch position 1 and the touch position 2 as touch pressure to obtain report data { touch position 1, pressure signal 1; touch position 2, pressure signal 1}. Thereby completing the synthesis of the touch position and pressure signals.
In some embodiments, the touch daemon may delete the historically received touch location and pressure signals after each synthesis is completed, so as not to be subsequently reused for the synthesis. That is, the touch daemon always assigns the last received pressure signal to the touch location that was received between the last two received pressure signals.
S1120, the touch daemon sends the report point data 1 to the application program.
S1121, the application program responds to the touch operation according to the point data 1.
The application program can determine the touch position and touch pressure of the pen point of the touch control pen on the screen of the tablet according to the point data 1, so that response is completed. For example, the application program may display the line from point a to point D in fig. 5A according to the report point data 1.
It should be appreciated that when the touch pressure is 0, the application may not perform any operation.
During or after executing the above steps S1113 to S1121, the coding chip does not send a coding signal at a time interval a2+4×b2 from t5, that is, at a time t5+a2+4×b2, according to "0" of the fifth bit in X. Then, the touch IC chip drives the touch sensor to scan a capacitance sampling value for a period corresponding to the fifth code slot, but the touch IC chip can determine that there is no touch based on the capacitance sampling value. Then, the coding chip does not send a coding signal at a time interval of a distance t5 being a2+5×b2, that is, at a time of t5+a2+5×b2, according to "0" of the sixth bit in X. Then, the touch IC chip drives the touch sensor to scan the capacitance sampling value in a period corresponding to the sixth coding time slot, but the touch IC chip can determine that there is no touch according to the capacitance sampling value.
The code signal and the pressure signal are then further sent to effect a second response to the touch operation in one code period, as shown in S1122 a-S1139.
And S1122a, the coding chip sends a fifth section of coding signal according to the configuration parameters.
As shown in fig. 12A, the coding chip starts to transmit the fifth segment of the coding signal at a time interval of a distance t5 of a2+6b2, that is, t5+a2+6b2, and ends to transmit the fifth segment of the coding signal at a time interval of a distance t5 of a2+6b2+c2, that is, t5+a2+6b2+c2 according to "1" of the seventh bit in X.
And S1122b, the touch sensor receives the fifth section of code signal.
S1123, scanning by the touch sensor to obtain a capacitance sampling value 5 corresponding to the fifth section of code signal.
Illustratively, the touch IC chip may drive the touch sensor to scan for capacitance sample values 5 during a period of time aligned with the seventh encoding slot.
S1124, the touch sensor sends the capacitance sampling value 5 to the touch IC chip.
S1125a, the coding chip sends a sixth section of coding signal according to the configuration parameters.
For example, according to "1" of the eighth bit in X, the code encoding chip starts to transmit the sixth segment of code encoding signal at a time interval of a distance t5 of a2+7b2, that is, at a time interval of t5+a2+7b2, and ends to transmit the sixth segment of code encoding signal at a time interval of a distance t5 of a2+7b2+c2, that is, at a time interval of t5+a2+7b2+c2. Note that the sixth segment of the coding slot is omitted in fig. 12A.
S1125b, the touch sensor receives a sixth segment of code signal.
S1126, scanning by the touch sensor to obtain a capacitance sampling value 6 corresponding to the sixth section of code signal.
Illustratively, the touch IC chip may drive the touch sensor to scan for capacitance sample values 6 during a period of time aligned with the eighth encoding slot.
S1127, the touch sensor transmits the capacitance sampling value 6 to the touch IC chip.
S1128, the touch IC chip calculates a touch position 3 according to the capacitance sampling value 5 and the capacitance sampling value 6.
S1129, the touch IC chip reports the touch position 3 to the touch daemon.
After that, the coding chip may further continue to transmit the seventh segment of the coding signal and the eighth segment of the coding signal according to the configuration parameters. The timing of starting transmission of the eighth-segment encoded signal and ending transmission of the eighth-segment encoded signal may be referred to as fig. 12A. Accordingly, the touch sensor may acquire a capacitance sample value 7 and a capacitance sample value 8. Finally, the touch IC chip can determine the touch location 4 from the capacitance sample value 7 and the capacitance sample value 8.
S1130, the touch IC chip reports the touch position 4 to the touch daemon.
S1131, the coding chip informs the MCU to acquire the pressure signal at the second moment.
Taking the example that the first time is the time t8 'in fig. 12A, the time at which the transmission of the eighth segment of the code signal ends as shown in fig. 12A is just the time t8', which indicates that the code signal will not be transmitted for a longer period of time (for example, the duration exceeding the first duration), the code chip may inform the MCU to acquire the pressure signal. So that it can be ensured that the pressure signal is not disturbed by the code signal.
In some embodiments, when the current time is the second time, the coding chip can also flip the level of the first pin of the coding chip, so as to inform the MCU to acquire the pressure signal.
For example, as shown in fig. 12B, when the second time is time t8', the level of the first pin may be flipped from a low level to a high level when the current time is time t8', so that the MCU may be instructed to acquire the pressure signal.
S1132, the MCU acquires the pressure signal 2 from the pressure sensor.
Illustratively, the pressure signal 2 is the pressure signal acquired after the eighth segment of the encoded signal in fig. 12A.
S1133, the MCU sends a pressure signal 2 to the first Bluetooth module.
S1134, the first Bluetooth module sends a pressure signal 2 to the second Bluetooth module.
S1135, the second bluetooth module sends a pressure signal 2 to the input drive.
It should be appreciated that the second bluetooth module may also be configured to send to the input driver after receiving the pressure signal 2 via one or more of the bluetooth driver, bluetooth service, and HID driver.
S1136, the input drive reports the pressure signal 2 to the touch daemon.
S1137, the touch daemon generates report data 2 from touch location 3, touch location 4, and pressure signal 2 in response to receiving pressure signal 2.
The touch daemon can assign the pressure signal 2 to the touch position 3 and the touch position 4 as touch pressure to obtain report data { touch position 3, pressure signal 2; touch position 4, pressure signal 2. Thereby completing the synthesis of the touch position and pressure signals.
S1138, the touch daemon sends the report point data 2 to the application program.
S1139, the application program responds to the touch operation according to the point data 2.
During or after the execution of S1122 to S1139, the coding chip does not send a coding signal at a time interval of a2+10×b2 from t5, that is, at a time of t5+a2+10×b2, according to "0" of the eleventh bit in X. Then, the touch IC chip drives the touch sensor to scan the capacitance sample value for a period of time aligned with the eleventh code slot, but the touch IC chip can determine that there is no touch based on the capacitance sample value. To this end, all the coding slots in one coding period are ended.
With the foregoing embodiment of fig. 13-12B, the stylus may trigger the acquisition and transmission of the pressure signal twice in one coding period, and the tablet may respond to the touch operation twice in one uplink period, instead of only once in one uplink period. Thus, the touch operation can be responded at a higher frequency, and the response time delay is reduced. Therefore, the problem that the first written content cannot be displayed in time (namely, the problem of the first case) caused by long response time delay and the problem that the rapid touch operation of the touch control pen to the flat panel is missed (namely, the problem of the second case) can be relieved to a certain extent. Eventually reducing the likelihood of problems in the first and second cases.
It should be noted that, in the foregoing embodiment, the triggering and acquiring of the pressure signal twice in one coding period is mainly illustrated as an example. Of course, the at least two preset durations are more than three preset durations, and the at least two preset moments may further include a third moment, a fourth moment, and a fifth moment … …, and correspondingly, in one coding period, the at least three times of pressure signals may be triggered and acquired. The panel may then receive at least three pressure signals in one up cycle, in response to at least three touch operations. The frequency of responding to touch operation is further improved, and the response time delay is reduced.
In the foregoing embodiment, after receiving the uplink signal, the coding chip determines a preset time (e.g., a first time and a second time) for acquiring the pressure signal, and then notifies the MCU to acquire the pressure signal after reaching the corresponding preset time. Of course, the coding chip can also detect whether the time interval between the current moment and the end moment of the uplink signal is one of at least two preset time lengths in real time after receiving the uplink signal, and if the time interval between the current moment and the end moment of the uplink signal is one of at least two preset time lengths, the MCU is informed to acquire the pressure signal; otherwise, if the time interval between the current time and the end time of the uplink signal is not one of at least two preset durations, the MCU is not informed to acquire the pressure signal.
In the foregoing embodiment, the preset time period is mainly used to determine the preset time for acquiring the pressure signal. In practical implementation, the method is not limited to this. In other embodiments, in one coding period, the coding chip may update the coding progress once every time a section of coding signal is sent, for example, the coding progress is increased by one, and after one coding period is finished, the coding progress is cleared. In this embodiment, the preset schedule may be used to determine the preset time for acquiring the pressure signal. The number of the preset progress is at least two, and when the coding progress is updated to one of the at least two preset progress, the current time can be determined to be the time for acquiring the pressure signal. For example, if the preset progress is 4 and 8, when the coding progress is updated to 4 (i.e. the 4 th segment of coding signal is sent) and 8 (i.e. the 8 th segment of coding signal is sent), the corresponding time can be determined as the time of acquiring the pressure signal.
In the foregoing embodiments, the scheme of the present application is mainly described in detail by using the software and hardware structures in the stylus and the tablet as the execution bodies. The present application will be described with reference to a stylus and a tablet.
Referring to fig. 13, interaction between a tablet and a stylus enables the tablet to increase the frequency of responding to a touch operation, and specific implementation of reducing response delay mainly includes:
S1301, after the Bluetooth connection is established between the tablet and the touch pen, the tablet sends configuration parameters to the touch pen through a Bluetooth link, wherein the configuration parameters are used for indicating to send coding signals.
S1302, the stylus receives the configuration parameters. See the description of S801 above.
S1303, determining at least two preset durations by the touch pen according to the configuration parameters, wherein the at least two preset durations are used for determining at least two preset moments for acquiring the pressure signals. See the description of S803, supra.
And S1304, the flat panel sends an uplink signal under the condition of bright screen, and the uplink signal is used for triggering and sending a coding signal.
The flat panel continuously transmits uplink signals under the condition of bright screen. For example, the uplink signal is periodically transmitted at a time interval of 16.667 ms.
S1305, the nib of the touch control pen approaches to the screen of the flat panel, and receives an uplink signal.
For example, after the distance between the pen tip and the screen is less than or equal to 20mm, the stylus may receive an up signal.
It should be noted that, as long as the distance between the pen tip of the stylus and the screen of the tablet is within the preset distance range, the stylus may also periodically receive the uplink signal as the tablet periodically transmits the uplink signal. So that the following S1306 and subsequent steps can be cyclically performed.
After receiving the uplink signal, the tablet on the one hand needs to send the coding signal according to a certain rule based on the indication of the configuration parameter, which is specifically shown as S1306 below. On the other hand, it is necessary to acquire and transmit the pressure signal at a preset timing, as shown in S1308.
S1306, after receiving the uplink signal, the stylus transmits a plurality of sections of code signals in a code period according to the configuration parameters. See the description of S1104, S1107a, S1122, S1125, and the like, supra.
For example, the stylus may transmit 8, 10, 12 code signals in one code period. It should be noted that, the number of segments of the code signal is even, so that the tablet can conveniently determine the touch position by using the capacitance sampling value corresponding to each two segments of the code signal, thereby reducing accidental errors. See for a detailed description of S1110 above.
S1307, the flat plate responds to the multi-section coding signals to determine at least two touch positions. See the description of S1105-S1106, S1108-S1110, supra.
Because the pen point of the touch pen is close to the screen of the panel, the coding signal can cause the capacitance change of each electrode in the electrode array of the touch sensor in the panel, and the touch sensor can obtain the capacitance of each electrode through scanning. That is, each segment of the coded signal reaches the touch sensor, which generates a corresponding capacitance sample value. The panel can determine a touch position according to the capacitance sampling value corresponding to one section or at least two continuous sections of code signals. For example, in the foregoing S1110, a touch position is determined by using the capacitance sampling values corresponding to the two code signals.
The multi-segment code signal corresponds to a plurality of capacitance sampling values, and at least two touch positions can be determined generally. For example, in the embodiment corresponding to fig. 11, a total of 4 touch positions from touch position 1 to touch position 4 are determined.
And S1308, after the touch pen receives the uplink signal, respectively triggering the touch pen to acquire and send a pressure signal to the flat plate according to at least two preset moments of at least two preset durations in one coding period. See the description of S803, S1113 and S1131 above.
And each time a preset time is reached, the touch pen acquires a pressure signal from the pressure sensor and sends the pressure signal to the touch pen. Correspondingly, corresponding to at least two preset moments, at least two pressure signals can be obtained in one coding period and sent to the touch pen.
S1309, the plate receives at least two pressure signals.
And S1310, after receiving the pressure signal each time, the panel responds to the touch operation according to the received pressure signal and the currently determined touch position which is not used for touch response.
In some embodiments, the panel, after each touch response, deletes the history signal obtained by the history and the determined touch position so as not to be reused for the touch response. Accordingly, after each time the pressure signal is received, the tablet responds to the touch operation only according to the received pressure signal and the touch position existing in the tablet.
For example, as shown in fig. 14, the tablet determines the touch position 1 after receiving the first segment of the code signal and the second segment of the code signal, and determines the touch position 2 after receiving the third segment of the code signal and the fourth segment of the code signal. Thereafter, the panel receives the pressure signal 1, and may respond to one touch operation according to the pressure signal 1, the touch position 1, and the touch position 2. The tablet may then delete pressure signal 1, touch location 1, and touch location 2. After that, the panel determines the touch position 3 after receiving the fifth segment of code signal and the sixth segment of code signal, and determines the touch position 4 after receiving the seventh segment of code signal and the eighth segment of code signal. Thereafter, the panel receives the pressure signal 2, and may respond to one touch operation according to the pressure signal 2, the touch position 3, and the touch position 4. The tablet may then delete the pressure signal 2, touch location 3, and touch location 4.
In summary, by adopting the method of the embodiment of the application, the stylus can send the multi-section code signal and the pressure signal to the panel at least twice in one code printing period, and the panel can respond to one touch operation after receiving the pressure signal each time. In response, the flat plate can respond to at least two touch operations in an uplink period corresponding to at least two pressure signals, so that the frequency of responding to the touch operations is improved, and the response time delay is reduced. Thus, the first problem and the second problem which are caused by higher response time delay can be avoided to a certain extent.
The present application also provides a chip system, as shown in fig. 15, the chip system 1500 includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 and the interface circuit 1502 may be interconnected by wires. For example, interface circuit 1502 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 1502 may be used to send signals to other devices (e.g., processor 1501). Illustratively, the interface circuit 1502 may read instructions stored in the memory and send the instructions to the processor 1501. The instructions, when executed by the processor 1501, may cause the electronic device or stylus to perform the steps of the embodiments described above. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
The present embodiment also provides a computer storage medium having stored therein computer instructions which, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method in the above-described embodiments. The computer instructions, when executed on a stylus, cause the stylus to perform the associated method steps described above to implement the method of the embodiments described above.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-mentioned related steps to implement the method in the above-mentioned embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be embodied as a chip, component or module, which may include a processor and a memory coupled to each other; the memory is configured to store computer-executable instructions, and when the device is operated, the processor may execute the computer-executable instructions stored in the memory, so that the chip performs the methods in the above method embodiments.
The electronic device, the stylus, the computer storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit may be stored in a readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.

Claims (10)

1. A method for transmitting touch data, applied to a stylus, where the stylus is communicatively connected to an electronic device, and the stylus is configured to perform a touch operation on a screen of the electronic device, the method comprising:
the stylus receives a first signal from the electronic device;
after receiving the first signal, before receiving the second signal:
the touch pen sends a plurality of sections of third signals, wherein the sections of third signals comprise a first code signal, a second code signal and a third code signal, the first code signal and the second code signal are two sections of adjacent third signals, the second code signal and the third code signal are two sections of adjacent third signals, the first code signal is before the second code signal, and the second code signal is before the third code signal;
the touch control pen does not acquire a signal for indicating pressure information of touch operation from a pressure sensor between the ending time of the first code signal and the starting time of the second code signal, and the time interval between the ending time of the first code signal and the starting time of the second code signal is smaller than a first duration;
The touch pen acquires a fourth signal from a pressure sensor in the touch pen at a first time between the end time of the second coding signal and the start time of a third coding signal, and sends the fourth signal to the electronic equipment, wherein the time interval between the first time and the start time of the third coding signal exceeds the first time length;
the touch pen sends a fifth signal to the electronic equipment after the end time of the last section of third signals in the sections of third signals;
the third signal is used for determining position information of touch operation, and the fourth signal and the fifth signal are used for indicating pressure information of touch operation; the first signal and the second signal are signals used for triggering the stylus to send the third signal twice in succession, and the second signal is after the first signal.
2. The method of claim 1, wherein the stylus includes a first chip, a micro-processing unit MCU, and a wireless communication module, the first chip configured to transmit the multi-segment third signal;
the stylus acquiring a fourth signal from a pressure sensor in the stylus at a first time between an end time of the second coding signal and a start time of a third coding signal, and transmitting the fourth signal to the electronic device, including:
The first chip sends a first notification to the MCU at the first moment, the first notification instructs the MCU to acquire a signal indicating the pressure information, and the MCU acquires the fourth signal from the pressure sensor in response to the first notification;
the MCU sends the fourth signal to the electronic equipment through the wireless communication module;
the stylus sending the fifth signal to the electronic device after the end time of the last third signal in the multiple sections of third signals, including:
the first chip sends a first notification to the MCU at the end time of the last third signal in the multiple sections of third signals, the first notification indicates the MCU to acquire a signal indicating the pressure information, and the MCU acquires the fifth signal from the pressure sensor in response to the first notification;
the MCU sends the fifth signal to the electronic equipment through the wireless communication module.
3. The method of claim 2, wherein the first notification is a level-flipping signal of a first pin of the first chip, the level-flipping signal comprising: the first pin is connected with the MCU and is not used for transmitting the multi-section third signal.
4. The method of any of claims 1-3, wherein prior to the stylus receiving the first signal from the electronic device, the method further comprises:
the touch pen receives a first parameter from the electronic equipment, wherein the first parameter is used for indicating the starting sending time and the ending sending time of each section of the third signal;
the stylus transmits a multi-segment third signal comprising:
the stylus transmits the multi-segment third signal based on the first parameter.
5. The method of claim 4, wherein after the stylus receives the first parameter from the electronic device, the method further comprises:
the stylus determines at least two time intervals, of two adjacent third signals, of which the time interval between the ending time of the preceding third signal and the starting time of the following third signal exceeds the first duration, based on the first parameter;
calculating the interval duration between the starting time point of each time interval and the moment when the touch pen finishes receiving the first signal, and obtaining at least two preset durations;
the interval duration between the first time and the time when the touch pen finishes receiving the first signal is a preset duration, and the interval duration between the end time of the last section of third signal in the multiple sections of third signals and the time when the touch pen finishes receiving the first signal is another preset duration.
6. The method of claim 5, wherein the stylus includes a first chip, a micro-processing unit MCU, and a wireless communication module;
the stylus receives a first parameter from the electronic device, including:
the MCU receives a first parameter from the electronic equipment through the wireless communication module;
the stylus determining, based on the first parameter, at least two time intervals in which the continuous duration of not sending the third signal exceeds the first duration, calculating an interval duration between a start time point of each time interval and a time point at which the stylus finishes receiving the first signal, and obtaining at least two preset durations, where the calculating includes:
the MCU determines at least two time intervals, of two adjacent third signals, of which the time interval between the ending time of the preceding third signal and the starting time of the following third signal exceeds the first time length, based on the first parameter, calculates the interval time length between the starting time point of each time interval and the time when the first chip finishes receiving the first signal, and obtains at least two preset time lengths;
the method further comprises the steps of:
And the MCU sends the at least two preset time lengths to the first chip.
7. A touch pen is characterized by comprising a pressure sensor, a memory and a Micro Control Unit (MCU), wherein the pressure sensor, the memory and the MCU are coupled; wherein the pressure sensor is for collecting a signal indicative of pressure information of a touch operation, the memory having stored therein computer program code comprising computer instructions which, when executed by the MCU, cause the stylus to perform the method of any one of claims 1-6.
8. The stylus of claim 7, further comprising a first chip and a wireless communication module; the first chip is used for sending a third signal, and the third signal is used for determining the position information of touch operation; the wireless communication module is used for transmitting a signal indicating pressure information of touch operation and a first parameter, wherein the first parameter is used for indicating a starting transmission time and an ending transmission time of the third signal.
9. A communication system comprising the stylus of claim 7 or 8 and an electronic device, the stylus being communicatively coupled to the electronic device, the stylus being configured to perform a touch operation on a screen of the electronic device.
10. A computer readable storage medium comprising computer instructions which, when run on a stylus, cause the stylus to perform the method of any one of claims 1-6.
CN202210912630.0A 2022-07-30 2022-07-30 Touch data sending method and touch pen Active CN116048295B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210912630.0A CN116048295B (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen
CN202311612149.0A CN117631873A (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210912630.0A CN116048295B (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311612149.0A Division CN117631873A (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen

Publications (2)

Publication Number Publication Date
CN116048295A CN116048295A (en) 2023-05-02
CN116048295B true CN116048295B (en) 2023-11-14

Family

ID=86116919

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210912630.0A Active CN116048295B (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen
CN202311612149.0A Pending CN117631873A (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311612149.0A Pending CN117631873A (en) 2022-07-30 2022-07-30 Touch data sending method and touch pen

Country Status (1)

Country Link
CN (2) CN116048295B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290665A (en) * 2020-05-12 2020-06-16 深圳市汇顶科技股份有限公司 Pressure detection method and device, active pen, touch chip and electronic equipment
CN113076015A (en) * 2020-01-03 2021-07-06 华为技术有限公司 Signal transmitting method for triggering handwriting display and handwriting display method
CN113377235A (en) * 2016-10-25 2021-09-10 乐金显示有限公司 Touch display device, active pen and touch system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861651B (en) * 2016-09-22 2021-01-22 京东方科技集团股份有限公司 Touch method, active pen, touch screen and touch display system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377235A (en) * 2016-10-25 2021-09-10 乐金显示有限公司 Touch display device, active pen and touch system
CN113076015A (en) * 2020-01-03 2021-07-06 华为技术有限公司 Signal transmitting method for triggering handwriting display and handwriting display method
CN111290665A (en) * 2020-05-12 2020-06-16 深圳市汇顶科技股份有限公司 Pressure detection method and device, active pen, touch chip and electronic equipment

Also Published As

Publication number Publication date
CN116048295A (en) 2023-05-02
CN117631873A (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN107407980B (en) Stylus pen having multiple operating portions configured to transmit synchronized signals
EP3241099B1 (en) Touch down detection with a stylus
CN105183319B (en) A kind of application operating method, application operating device and terminal
EP2743819A2 (en) Terminal and method for providing user interface using a pen
EP2724213B1 (en) Intelligent stylus
CN201156246Y (en) Multiple affair input system
TW212236B (en)
JP6682645B2 (en) Data processing method and data processing device
JP6085630B2 (en) Touch pen system and touch pen
WO2019076238A1 (en) Floating action button display method and terminal device
JP2011258143A (en) Touch panel device
CN112214118B (en) Touch pen, control method thereof and electronic equipment
US20100271301A1 (en) Input processing device
TWI621037B (en) Touch sensitive system and stylus for commanding by maneuvering and method thereof
JP2011242908A (en) Touch panel device and touch panel system comprising the same
JP2017513084A (en) Touch screen control method and apparatus
US20120262391A1 (en) Touch screen device and plasma display apparatus having the same
CN116048295B (en) Touch data sending method and touch pen
JP4904410B2 (en) Touch panel device
CN111273809B (en) Data acquisition method and device, electronic equipment and storage medium
JP6952753B2 (en) Active pen position detection method and sensor controller
CN115525176B (en) Data transmission method, touch pen and storage medium
US11422663B1 (en) Stylus sensing on touchscreens
US20210286453A1 (en) Pointer position detection method and sensor controller
CN112486354A (en) Touch method of electronic equipment, information transmission method and device of touch component

Legal Events

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