Touch response method, device, terminal device and storage medium

By using the cache queue to synchronously process elastic wave data and location data in the terminal device, the problem of inconsistent data fusion in the existing technology is solved, and the consistency of the interactive response is achieved.

CN113608662BActive Publication Date: 2024-10-15GUANGZHOU CHUANGZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110721856.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-28
Publication Date
2024-10-15
Estimated Expiration
2041-06-28

AI Technical Summary

Technical Problem

In the existing technology, during touch operations of interactive functions based on elastic wave sensors, elastic wave data and position data cannot be synchronously fused, resulting in inconsistent display effects of interactive responses.

Method used

By using two cache queues in the terminal device to cache location data and elastic wave data respectively, and polling to confirm the response time when data appears in the two queues at the same time, the data is synchronously fused to ensure the accuracy of the interactive response.

Benefits of technology

It achieves a consistent display effect for interactive responses to the same touch operation, ensuring data integrity and synchronization during the response process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113608662B_ABST
    Figure CN113608662B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a touch response method, device, terminal equipment and storage medium. The method is used for an interactive tablet, which includes a display screen, a touch module and an elastic wave sensor. When the display screen detects a touch operation, the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor are received; the position data is cached in a first cache queue, and the elastic wave data is cached in a second cache queue, and the first cache queue and the second cache queue are related to each other; the first cache queue and the second cache queue are polled to confirm the response time when the data appears simultaneously in the first cache queue and the second cache queue; the display properties of the interaction result corresponding to the touch operation are confirmed according to the elastic wave data, and the interaction result is updated on the display screen according to the position data and the display properties starting from the response time. This solution realizes the interactive response to the same touch operation to maintain an accurate and consistent display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of interactive technology, and in particular to a touch response method, apparatus, terminal device, and storage medium. Background Art

[0002] With the development of intelligent technology, the types of electronic products people come into contact with in daily life are becoming increasingly diverse. Among them, interactive electronic products based on touch technology are showing a more and more comprehensive functional integration trend because of the good human-computer interaction experience. Interactive tablets are one of the representative integrated devices, suitable for group interaction occasions such as meetings, teaching, and commercial exhibitions. This device integrates multiple functions such as projectors and video conferencing.

[0003] In order to enrich the interactive experience of the interactive tablet, an elastic wave sensor will be further set in the interactive tablet to obtain more convenient interaction. However, when using the interactive function based on the elastic wave sensor, the inventor found that the interactive implementation based on the elastic wave sensor needs to fuse the elastic wave data detected by the elastic wave sensor and the position data detected by the touch module. However, due to the different detection components of the elastic wave data and the position data, as well as the differences in the transmission process and the processing process, the elastic wave data and the position data cannot be synchronously fused, resulting in the interactive response to the same touch operation cannot maintain an accurate and consistent display effect. Summary of the invention

[0004] The present invention provides a touch response method, apparatus, terminal device and storage medium to solve the technical problem in the prior art that elastic wave data and position data cannot be synchronously integrated, resulting in the inability to maintain an accurate and consistent display effect for the interactive response to the same touch operation.

[0005] In a first aspect, an embodiment of the present invention provides a touch response method, comprising:

[0006] receiving position data generated by the touch module and elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation;

[0007] caching the position data into a first cache queue, and caching the elastic wave data into a second cache queue, wherein the first cache queue and the second cache queue are associated with each other;

[0008] Polling the first cache queue and the second cache queue to confirm the response time when data appears in the first cache queue and the second cache queue at the same time;

[0009] The display attribute of the interaction result corresponding to the touch operation is confirmed according to the elastic wave data, and the interaction result is updated on the display screen according to the position data and the display attribute starting from the response moment.

[0010] In a second aspect, an embodiment of the present invention further provides a touch response device, including:

[0011] A data receiving unit, used for receiving the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation;

[0012] A data cache unit, used for caching the position data into a first cache queue and caching the elastic wave data into a second cache queue, wherein the first cache queue and the second cache queue are associated with each other;

[0013] A data polling unit, used for polling the first cache queue and the second cache queue to confirm a response time when data appears in the first cache queue and the second cache queue at the same time;

[0014] An operation response unit is used to confirm the display attribute of the interaction result corresponding to the touch operation according to the elastic wave data, and update the interaction result on the display screen according to the position data and the display attribute starting from the response moment.

[0015] In a third aspect, an embodiment of the present invention further provides a terminal device, including:

[0016] one or more processors;

[0017] A memory for storing one or more programs;

[0018] When the one or more programs are executed by the one or more processors, the terminal device implements the touch response method as described in the first aspect.

[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the touch response method as described in the first aspect is implemented.

[0020] The above-mentioned touch response method, device, terminal device and storage medium, in which the method receives the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation; caches the position data in a first cache queue, and caches the elastic wave data in a second cache queue, the first cache queue and the second cache queue are mutually related; polls the first cache queue and the second cache queue to confirm the response time when the data appears simultaneously in the first cache queue and the second cache queue; confirms the display attribute of the interaction result corresponding to the touch operation according to the elastic wave data, and updates the interaction result on the display screen according to the position data and the display attribute from the response time. The position data and the elastic wave data are respectively saved by two cache queues, and the two cache queues are polled to confirm the time when the data appears simultaneously as the response time, and the touch operation is responded from the response time, which ensures that there are corresponding position data and elastic wave data in the response process to ensure the complete information of a touch operation, and through synchronous fusion starting from the response time, the interactive response to the same touch operation is achieved to maintain an accurate and consistent display effect before and after. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A method flow chart of a touch response method provided by an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of two writing pens performing touch operations on an interactive tablet;

[0023] Figure 3 A schematic diagram of elastic wave detection provided in an embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of the transmission timing of position data and elastic wave data;

[0025] Figure 5 A schematic diagram of storing position data and elastic wave data in a cache queue;

[0026] Figure 6 A schematic diagram of the structure of a touch response device provided by an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0029] It should be noted that due to space limitations, this application description does not list all optional implementation methods. After reading this application description, those skilled in the art should be able to understand that as long as the technical features do not contradict each other, any combination of technical features can constitute an optional implementation method.

[0030] Each embodiment is described in detail below.

[0031] Figure 1 A method flow chart of a touch response method provided by an embodiment of the present invention, the touch response method is used in a terminal device. As shown in the figure, the touch response method includes:

[0032] Step S110: receiving the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation.

[0033] Step S120: Cache the position data into a first cache queue, and cache the elastic wave data into a second cache queue, wherein the first cache queue and the second cache queue are associated with each other.

[0034] For ease of understanding, the detailed process of touch response in the interactive tablet is described in the embodiment. The interactive tablet can be an integrated device that controls the content displayed on the display screen and realizes human-computer interaction through touch technology, which integrates one or more functions such as a projector, an electronic whiteboard, a screen, a sound system, a television, and a video conferencing terminal. Of course, the interactive tablet does not include a limitation on the surface features of the display surface. For example, the surface features of the interactive tablet can be a plane, a curved surface, or a combination of multiple planes.

[0035] The range covered by the graphical interface displayed in the display screen of the interactive tablet can be a touch detection area for detecting user operations, that is, the range of the graphical interface and the touch detection area is basically overlapped or may not overlap. When a touch operation is performed in the touch detection area, such as when a writing pen or a finger contacts a display screen with a touch function to write, the touch module of the display screen can sense changes in infrared light, current, voltage, magnetic flux or pressure (corresponding to the specific setting type of infrared display screen, capacitive display screen, resistive display screen, electromagnetic display screen or pressure-sensitive display screen), so as to obtain a touch signal containing the coordinates of the touch position and the trigger time of the touch signal after conversion. According to the coordinates of the touch position and the trigger time of the touch signal, the trajectory data of the writing trajectory input by the writing pen or the user's finger during each press to write and lift to stop writing can be obtained, and the writing trajectory input by the user is displayed in real time on the graphical interface of the display screen according to the trajectory data. Of course, the writing process is not limited to writing, and any input process for displaying the operation trajectory implemented on the display screen of the interactive tablet can be regarded as a writing process. In addition, according to the different display elements at the location where the touch operation occurs, the touch operation can be responded to as a user's click, drag and other operations. These different response methods have the same underlying coordinate processing method. Based on the hardware implementation of basic functions such as touch and display, various interactive display designs of interactive tablets can be realized. It should be noted that from the perspective of user interaction experience, the display interface and touch detection area of ​​an interactive tablet are generally the same interface, while for laptops, the display interface and touch detection area may be completely independent of each other, or partially independent and partially overlapping.

[0036] like Figure 2 As shown, the interactive tablet 1 includes at least one display screen. For example, the interactive tablet 1 is configured with a display screen with a touch function, and the display screen with a touch function can be an infrared display screen, a capacitive display screen, a resistive display screen, an electromagnetic display screen, or a pressure-sensitive display screen. On the display screen with a touch function, the user can touch the display screen with a finger or a writing pen to achieve touch operation. Figure 2 The figure shows two different writing pens (i.e., the first writing pen 21 and the second writing pen 22) performing writing operations at the same time. Accordingly, the interactive tablet detects the touch position and responds according to the touch position to realize the touch function. When the touch sensing modules used on the display screen with touch function are different, the original touch signals collected by the touch sensing modules are different, and the converted touch signals are not completely the same.

[0037] For an infrared display screen, the touch module is an infrared touch frame, and the touch signal collected by it may include a signal indicating that the infrared rays are blocked, and the converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and Y coordinate of the touch position. For a capacitive display screen, the touch module is a capacitive touch panel, and the touch signal collected by it may include the current flowing through each electrode of the touch screen, and the converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and Y coordinate of the touch position. For a resistive display screen, the touch module is a resistive touch panel, and the touch signal collected by it may include the voltage of the touch position, and the converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and Y coordinate of the touch position. For an electromagnetic display screen, the touch module is an electromagnetic panel, and the touch signal collected by it may include the change in magnetic flux and the frequency of the received electromagnetic signal, and the converted touch signal may include a position touch signal corresponding to the change in magnetic flux and a pressure signal corresponding to the frequency, and the position touch signal may include the X coordinate and Y coordinate of the touch position; the pressure signal may include a pressure value. For a pressure-sensitive display screen, the touch module is a pressure sensor, and the touch signal collected by the touch module may include a pressure signal. The converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and the Y coordinate of the touch position.

[0038] The interactive tablet to which the interactive method provided in the embodiment of the present application is applicable includes, in addition to the display screen and the touch module disposed on the display screen as described above, an elastic wave detection device.

[0039] In this solution, the interactive tablet detects touch operations not only by detecting the touch position information, but also by detecting the vibration signal generated when the touch object contacts the display interface of the interactive tablet during the touch operation, that is, obtaining the elastic wave signal. Among them, mechanical vibrations below the audio frequency, sounds in the audio range, and ultrasonic waves above the audio frequency are all wave phenomena of media such as gas, liquid, and solid. Compared with light and electromagnetic waves, this wave phenomenon is called elastic wave.

[0040] During the implementation of this plan, if Figure 3 As shown, the elastic wave signal is detected by the elastic wave sensor 11 in the elastic wave detection device. The elastic wave sensor 11 is specifically installed at a position where the vibration of the display screen can be transmitted, thereby realizing the detection of the event that the touch object on the display screen touches the display screen, and is not necessarily installed at the position where the vibration occurs. Figure 3As shown, elastic wave sensors 11 can be arranged at the four corners of the display screen. Of course, there can be other arrangements, such as being arranged at the midpoint of each side of the rectangular frame. The number can also be other numbers, such as 2 or 5. As long as the elastic wave sensor 11 can detect the vibration when the touch object contacts the display screen during the touch operation, the specific number of arrangements can be set according to the size of the display screen and the detection accuracy. Generally speaking, the larger the size of the display screen, the higher the detection accuracy requirement, and the more elastic wave sensors 11 are set. The elastic wave sensor 11 can be directly installed on the surface of the display screen, such as directly installed on the upper surface of the display screen or the lower surface of the display screen, so as to receive the vibration transmitted by the display screen and improve the accuracy of touch detection. The elastic wave sensor 11 can also be installed in the frame of the display screen to reduce the impact on the internal structure and reduce the common mode noise interference from the display screen. Of course, the elastic wave sensor 11 can also be installed on other components in contact with the display screen to receive the vibration occurring in the display screen through the transmission of other components.

[0041] The elastic wave sensors can all passively detect elastic waves, or one or more of them can actively excite elastic waves outward. The excited elastic waves can be detected by all elastic wave sensors. When there is an external touch on the cover of the display screen, an additional elastic wave will be generated and detected by all elastic wave sensors. The system can determine the medium type corresponding to the external touch based on the signal generated by the combined effect of multiple elastic waves.

[0042] When an object touches the cover of the display screen (including tapping and sliding), a characteristic elastic wave is generated. The elastic wave starts from the contact point and propagates around the cover or into the inside of the cover. The elastic wave sensor located at the screen frame or inside the cover can convert the vibration signal into a sensing signal according to different detection methods. The sensing signal is transmitted to a processor with temperature compensation, amplified, and converted into a digital elastic wave signal. Here, the sensing signal includes a voltage signal, a current signal, or a magnetic flux signal. In the process of detecting the sensing signal, the elastic wave sensor determines whether it is a valid touch signal based on the strength of the sensing signal and filters the noise signal.

[0043] Taking the voltage signal as an example, the voltage signal obtained by the elastic wave sensor during the contact between the object and the cover of the display screen will be scanned at a certain frequency f. When the voltage value is greater than the first voltage threshold V1, the voltage value will be recorded as an effective piezoelectric value higher than the noise, otherwise it will be recorded as zero voltage. In the specific judgment process, the first voltage threshold V1 can change accordingly with the temperature, because the circuit noise will change with the temperature, and the coupling coefficient of the piezoelectric material will also change accordingly with the temperature. The K voltage signals recorded continuously are an elastic wave signal segment, and the duration of the segment is T0 = K / f. In this segment, if none of the K signals in the segment is greater than the first voltage threshold V2, it means that the signal strength does not reach the effective touch strength, and it is judged as a noise signal and discarded; on the contrary, if one of the K voltage signals is greater than the first voltage threshold V2, it means that the signal strength reaches the effective touch strength and is recorded as a valid touch signal.

[0044] Of course, depending on the different detection methods of the elastic wave sensor, the signal type converted from the elastic wave is different. For example, it can also be a change in magnetic flux, and then the corresponding digital information is generated according to the change in magnetic flux to realize the detection of the elastic wave.

[0045] According to the sensing signal detected by the elastic wave sensor, the center position and contact shape of the touch object at time ti can be known. Combined with the temperature information, the speed of different elastic waves propagating in the cover can be obtained. For example, the wave velocity of the surface wave is va(T), which is a function of temperature T. The wave velocity may be anisotropic (for example, the anisotropy of the cover material, or the anisotropy caused by different internal stresses). According to the position information, it can be concluded that the distance between the touch object and an elastic wave sensor is Sk, then the elastic wave signal of the touch object reaches the elastic wave sensor at (ti+Sk / va); and the intensity of the elastic wave will decay with the distance, and the ratio of the signal intensity reaching the elastic wave sensor to the original signal intensity is ~1 / (Sk^2). The specific attenuation rate is also related to the cover temperature of the display screen and the frequency of the elastic wave itself. Generally speaking, the higher the cover temperature, the faster the attenuation rate; the higher the frequency, the faster the attenuation rate. Similarly, it can be concluded that the signal reception time and signal strength of other elastic wave sensors are related.

[0046] All elastic wave signals obtained by the elastic wave sensor can remove some noise signals according to the different characteristic quantities of the signal such as time and frequency. The first is the vibration signal from other than the touch behavior, such as external vibration, internal speaker or frame, which will generate some vibration. With the help of the signal detected by the elastic wave sensor, the time period of the valid signal can be determined, and the elastic wave signals in other time periods are all signals caused by non-touch. Removing the ineffective touch signals in the piezoelectric sensor in different time periods is conducive to the identification and judgment of the object in the subsequent steps. The second is the touch behavior, but the characteristics of the touch object have not been recorded in advance. For touch gestures used for interaction or other object touches, there are known characteristic frequency distributions. For example, when the system supports finger touch or slide with the stylus or eraser, the characteristic frequency is between 1kHz and 20kHz, and the signals of other frequencies are noise or unsupported signals; therefore, the voltage signal can be subjected to fast Fourier transformation to filter out the unsupported frequency interval into the signal interval.

[0047] It should be noted that the elastic wave sensor at the same position can be composed of one or more polarization direction sensors. For example, for two polarization directions of + / -Z direction, the difference between the two piezoelectric signals can be calculated using a differential circuit, which can amplify the signal and reduce the change of the piezoelectric coefficient caused by temperature and other reasons. For another example, one or more piezoelectric sensors with polarization directions in the XY plane can sense elastic wave signals in one more dimension, detect the propagation of different elastic waves, increase the amount of information (facilitate multi-point identification and judgment), and increase waterproofing (using the low shear modulus of water to detect the characteristic signal of the tangential wave) or other stains.

[0048] At this point, the elastic wave sensor can output a valid elastic wave signal, which is recorded in the form of a corresponding voltage signal, in which information such as amplitude, frequency and phase can be confirmed.

[0049] In terms of the source of elastic waves, there are various noise-generating components in the interactive tablet (such as motors, speakers, fans, etc.) and noise-generating devices outside the interactive tablet (such as indoor air conditioners, TVs, etc.). During use, these components will cause the interactive tablet to generate elastic waves that are not intended by the user. The type of component can be used to identify the way the component generates noise. For example, the noise generated by the speaker mainly comes from the elastic waves generated in the overall medium of the interactive tablet when it makes sound. For elastic wave sensors, various elastic wave signals can be detected at any time, but many of them do not come from the touch operation itself.

[0050] For these components or devices, the elastic wave signals generated by the components or devices within a preset time period under different driving voltages can be collected in advance, and the electrical signals converted from the elastic wave signals can be used as noise signals. After all the signals detected by the elastic wave sensor are noise-filtered and noise interference is eliminated, an effective elastic wave signal can be obtained. In the process of filtering out noise, considering that the interference generated by the noise signal is not the same, the signal generated by the touch operation itself can be adaptively amplified or reduced with reference to the noise signal to highlight the difference between the noise signal and the signal generated by the touch operation itself.

[0051] Considering that when the noise generated by a noise source such as a speaker is relatively light, the elastic wave signal generated when the touch object is touched will obviously be higher than the elastic wave signal (i.e., the noise signal) generated by the noise source such as the speaker. At this time, the difference between the two is not obvious. By setting the voltage range to limit the voltage threshold, it is easier to confirm the elastic wave band generated by the noise and remove it, thereby reducing the amount of calculation, effectively improving the efficiency of filtering out the noise, and quickly obtaining the signal corresponding to the touch operation itself, i.e., the elastic wave signal. Specifically, within the range composed of the voltage threshold, all detected elastic wave signals and noise signals are phase-matched, and the signal data with the same phase as the noise signal is removed, thereby reducing unnecessary calculations in actual calculations. For example, when the noise generated by a noise source such as a speaker is relatively light, the touch signal generated when the user operates the touch will obviously be higher than the noise signal generated by the noise source such as the speaker. At this time, the difference between the two is not obvious. By limiting the voltage threshold, it is easier to confirm the band generated by the noise and remove it, thereby effectively improving the efficiency of noise removal. During the filtering process, all elastic wave signals and noise signals can be compared in phase. If the elastic wave signal is consistent with the noise signal in phase, the signal data in the elastic wave signal that is consistent with the noise signal in phase will be deleted. If the elastic wave signal is opposite to the noise signal in phase, the signal data in the elastic wave signal that is opposite to the noise signal in phase will be retained, so as to avoid the error caused by direct subtraction when the band of the noise signal is opposite to the band of the elastic wave signal, and retain the signal in the elastic wave signal that is truly derived from the touch operation. A digital signal is generated based on the signal that is truly derived from the touch operation, that is, the elastic wave data corresponding to the touch operation is obtained.

[0052] In this solution, the position data detected by the touch module and the elastic wave data detected by the elastic sensor are further deeply processed. In the actual touch operation response process, the position data and elastic wave data cannot be processed and responded to seamlessly, but there is a receiving, caching and processing process to achieve the response. However, this process is generally in milliseconds, so the user feels that the touch operation is a real-time response. In this solution, the position data and elastic wave data obtained when the touch operation is detected are first cached to the associated first cache queue and second cache queue respectively. In the specific implementation, the first cache queue and the second cache queue are both first-in-first-out queues. In a computer, a first-in-first-out queue is a sequential execution method. The data that enters first is processed and retired first, and then the subsequent data is executed. When the processor does not have time to process all the data within a certain period of time, the data will be arranged in a first-in-first-out queue. For example, data No. 0 enters the queue first, followed by data No. 1, data No. 2... When the processor completes the current data, it will take out data No. 0 from the first-in-first-out queue and execute it first. At this time, data No. 1 will take over the position of data No. 0. Similarly, data No. 2, data No. 3... will move forward one position.

[0053] In this solution, the first cache queue and the second cache queue are not processed independently, but respond in an integrated manner. This integrated response starts with the caching of data. Specifically, it is confirmed that the position data and elastic wave data are generated within the first time period, and the position data is cached in the first cache queue, and the elastic wave data is cached in the second cache queue. Considering that the touch data and elastic wave data come from the same touch operation, the data generation generally comes from the same moment (such as capacitive touch detection) or two closely adjacent moments (such as infrared touch detection), and the difference in the transmission and processing process is also very small, so the first time period is generally limited to several milliseconds. Only the position data and elastic wave data detected successively within several milliseconds are regarded as data generated by the same touch operation and need to be saved in the two associated cache queues accordingly.

[0054] In terms of specific order, such as Figure 4 As shown, it is possible that the position data is generated before the elastic wave data; it is possible that the position data and the elastic wave data are generated at the same time; it is also possible that the position data is generated after the elastic wave data. Corresponding to the three generation order relationships, the data storage states of the two cache queues are also different, such as Figure 5 As shown, it is possible that the position data is cached in the first cache queue (FIFO_1) first; it is possible that the elastic wave data is cached in the second cache queue (FIFO_2) while the position data is cached in the first cache queue (FIFO_1); it is also possible that the elastic wave data is cached in the second cache queue (FIFO_2) first.

[0055] Step S130: Poll the first buffer queue and the second buffer queue to confirm the response time when data appears in both the first buffer queue and the second buffer queue simultaneously.

[0056] The data in the two buffer queues is not processed immediately after it appears. Instead, there is a polling process for the data to confirm that both the first buffer queue and the second buffer queue have cached data, and to confirm that the position data and elastic wave data for a complete touch operation have both appeared. The touch operation is then responded to starting from the moment when both have appeared. The polling process is a process of periodically accessing the first buffer queue and the second buffer queue. To ensure as much as possible the synchronization between the response to the touch operation and the user operation, the polling period is generally only a few milliseconds to start processing the position data and elastic wave data as soon as possible. Specifically, poll the first buffer queue and the second buffer queue, obtain the first moment when position data starts to appear in the first buffer queue, and obtain the second moment when elastic wave data starts to appear in the second buffer queue; take the later of the first moment and the second moment as the response time. As Figure 5 shown in the first state in the figure, when position data appears in the first buffer queue, there is no data in the second buffer queue. Obviously, the first moment is earlier and the second moment is later, and the second moment corresponds to the response time. Similarly, Figure 5 in the third state in the figure, the first moment should be taken as the response time, and in the second state, there is no obvious order between the first moment and the second moment, and at this time both can be taken as the later moment and confirmed as the response time.

[0057] Step S140: Confirm the display attribute of the interaction result corresponding to the touch operation according to the elastic wave data, and update the interaction result on the display screen according to the position data and the display attribute starting from the response time.

[0058] In the prior art, the display attributes corresponding to touch operations for different writing pens are mainly achieved through the judgment of the contact surface. For example, the tip of a white pen is thinner, the tip of a red pen is thicker, and the contact surface of an eraser is the largest. By using the W (width) and H (height) information of the first point in the position data, the area S = WH is obtained to judge which logic to perform. That is, when the first point of the touch data drops, if the area S is less than the threshold S1 of the area of the white pen, i.e., S < S1, then a white handwriting is displayed; if the area S is greater than the threshold S1 of the white pen but less than the threshold S2 of the red pen, i.e., S1 < S < S2, then a red handwriting is displayed; if the area S is greater than the minimum area S3 of the eraser, i.e., S > S3, then it is displayed as an eraser. All in all, for two pens with two colors, it depends on the contact area of the first point. By judging which threshold interval the area of the first point is in, the display color is confirmed until the writing pen leaves the display screen.

[0059] In this solution, elastic wave data can confirm the display properties of the corresponding response of the control operation in a more accurate way. Figure 2 The pen tips of the first writing pen 21 and the second writing pen 22 have different media types, which will generate different elastic waves accordingly. Based on the recognition of the writing pen by the elastic waves, the handwriting corresponding to the first writing pen 21 can be fixed to one color (for example, red), and the handwriting corresponding to the second writing pen 22 can be fixed to another color (for example, yellow). In addition to the difference in color, there is also a difference in operation type. The difference in specific operation types is exemplified by the input operation for inputting handwriting and the erasing operation for erasing handwriting as mentioned above. The erasing operation is generally implemented through the top of the writing pen (that is, the end opposite to the pen tip), that is, when the top of the writing pen contacts and moves with the interactive tablet, the writing handwriting at the corresponding position is deleted.

[0060] In addition to color, there can also be a determination of the thickness of the handwriting. Specifically, the position data includes the contact range, and the display attribute includes a default contact shape preset corresponding to each elastic wave data. Based on the basic range and the default contact shape, in the specific implementation process, step S140 can be implemented by steps S141 and S142:

[0061] Step S141: confirming a corresponding default contact point shape according to the elastic wave data, and replacing a shape corresponding to the contact range with the default contact point shape;

[0062] Step S142: starting from the response moment, the default contact shape is moved according to the position data to update the interaction result on the display screen.

[0063] The contact range refers to the contact surface between the writing pen and the display screen during the actual touch operation. Because different users have different writing habits, or the same user's writing movements change, the contact range may change at any time. By standardizing the contact range, the thickness of the handwriting of the same writing pen can be unified. For example, the preset default contact shape corresponds to circles of different sizes for the tips of different writing pens, and the top of the writing pen (for erasing) corresponds to a rectangle.

[0064] On the basis of the above-mentioned embodiment, the present solution may further include step S140 and step S150 for implementing touch operation in an abnormal state of elastic wave detection.

[0065] Step S150: confirming that the time when the touch operation is detected and elastic wave data is obtained is greater than a second time period after the time when the position data is obtained, and ignoring the elastic wave data;

[0066] Step S160: responding to the touch operation according to the position data.

[0067] When implementing touch operations based on the interactive tablet in this solution, it is possible that the corresponding elastic wave data cannot be detected at all, or the elastic wave data cannot be accurately matched, or the elastic wave data does not correspond to the preset default contact shape. At this time, the touch operation can be responded to in a conventional manner, that is, judging which operation it is and the corresponding display attributes based on the size of the contact position, and then responding, thereby ensuring the implementation of basic touch operations.

[0068] In the above, the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor are received when the display screen detects a touch operation; the position data is cached in a first cache queue, and the elastic wave data is cached in a second cache queue, wherein the first cache queue and the second cache queue are related to each other; the first cache queue and the second cache queue are polled to confirm the response time when data appears simultaneously in the first cache queue and the second cache queue; the display attribute of the interaction result corresponding to the touch operation is confirmed according to the elastic wave data, and the interaction result is updated on the display screen according to the position data and the display attribute from the response time. The position data and the elastic wave data are saved respectively by two cache queues, and the two cache queues are polled to confirm the time when the data appears simultaneously as the response time, and the touch operation is responded to from the response time, thereby ensuring that there are corresponding position data and elastic wave data in the response process to ensure the complete information of a touch operation, and through synchronous fusion starting from the response time, the interactive response to the same touch operation is achieved to maintain an accurate and consistent display effect.

[0069] Figure 6 A schematic diagram of the structure of a touch response device provided by an embodiment of the present invention. Figure 6 The touch response device includes: a data receiving unit 210, a data buffer unit 220, a data polling unit 230 and an operation response unit 240.

[0070] Among them, the data receiving unit 210 is used to receive the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation; the data cache unit 220 is used to cache the position data to a first cache queue and cache the elastic wave data to a second cache queue, and the first cache queue and the second cache queue are related to each other; the data polling unit 230 is used to poll the first cache queue and the second cache queue to confirm the response time when data appears simultaneously in the first cache queue and the second cache queue; the operation response unit 240 is used to confirm the display attributes of the interaction result corresponding to the touch operation according to the elastic wave data, and update the interaction result on the display screen according to the position data and display attributes starting from the response time.

[0071] Based on the above embodiment, the data polling unit 230 includes:

[0072] A time confirmation module, used for polling the first cache queue and the second cache queue, obtaining a first time when the first cache queue starts to have position data, and obtaining a second time when the second cache queue starts to have elastic wave data;

[0073] The timing confirmation module is used to use the later one of the first moment and the second moment as the response moment.

[0074] Based on the above embodiment, the position data includes a contact range, and the display attribute includes a default contact point shape preset corresponding to each elastic wave data;

[0075] The operation response unit 240 includes:

[0076] A contact confirmation module, used to confirm the corresponding default contact shape according to the elastic wave data, and replace the shape corresponding to the contact range with the default contact shape;

[0077] A contact point moving module is used to move the default contact point shape according to the position data starting from the response moment, so as to update the interaction result on the display screen.

[0078] Based on the above embodiment, the data cache unit 220 is specifically used for:

[0079] Confirm that the position data and elastic wave data are generated within the first time period, cache the position data in the first cache queue, and cache the elastic wave data in the second cache queue.

[0080] Based on the above embodiment, the touch response device further includes:

[0081] A data filtering unit, used for determining the time when the touch operation is detected and elastic wave data is obtained, and if the time when the position data is obtained exceeds a second time period, the elastic wave data is ignored;

[0082] The second response unit is used to respond to the touch operation according to the position data.

[0083] Based on the above embodiment, the display attributes further include color and operation type.

[0084] Based on the above embodiment, the operation types include input operation and erase operation.

[0085] Based on the above embodiment, the first cache queue and the second cache queue are both first-in-first-out queues.

[0086] The touch response device provided in the embodiment of the present invention is included in an electronic device of the device, and can be used to execute any touch response method provided in the above embodiments, and has corresponding functions and beneficial effects.

[0087] It is worth noting that in the above-mentioned embodiment of the touch response device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0088] Figure 7 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. Figure 7 As shown, the terminal device includes a processor 310, a memory 320, an input device 330, an output device 340 and a communication device 350; the number of processors 310 in the terminal device can be one or more. Figure 7 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330, the output device 340 and the communication device 350 in the terminal device can be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0089] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the touch response method in the embodiment of the present invention (for example, the data receiving unit 210, the data cache unit 220, the data polling unit 230 and the operation response unit 240 in the touch response device). The processor 310 executes various functional applications and data processing of the terminal device by running the software programs, instructions and modules stored in the memory 320, that is, implements the above-mentioned touch response method.

[0090] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0091] The input device 330 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the terminal device. The output device 340 may include a display device such as a display screen.

[0092] The above-mentioned terminal device includes a touch response device, which can be used to execute any touch response method and has corresponding functions and beneficial effects.

[0093] An embodiment of the present invention further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the touch response method provided in any embodiment of the present application and have corresponding functions and beneficial effects.

[0094] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.

[0095] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0096] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0097] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

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

[0099] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A touch response method for an interactive tablet, wherein the interactive tablet comprises a display screen, a touch module and an elastic wave sensor, characterized in that: include: receiving position data generated by the touch module and elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation; caching the position data into a first cache queue, and caching the elastic wave data into a second cache queue, wherein the first cache queue and the second cache queue are associated with each other; Polling the first cache queue and the second cache queue to confirm the response time when data appears in the first cache queue and the second cache queue at the same time; confirming the display attribute of the interaction result corresponding to the touch operation according to the elastic wave data, and updating the interaction result on the display screen according to the position data and the display attribute starting from the response moment; Confirm that the time when the touch operation is detected and elastic wave data is obtained is greater than a second time period after the time when the position data is obtained, and ignore the elastic wave data; Responding to the touch operation according to the position data, including determining the operation type and the corresponding display attribute according to the size of the contact position, and responding; The step of polling the first cache queue and the second cache queue to confirm the response time when data appears in the first cache queue and the second cache queue at the same time includes: Polling the first cache queue and the second cache queue to obtain a first moment when position data starts to appear in the first cache queue, and to obtain a second moment when elastic wave data starts to appear in the second cache queue; The later one of the first time and the second time is used as the response time.

2. The method according to claim 1, characterized in that The position data includes a contact range, and the display attributes include a default contact point shape preset corresponding to each elastic wave data; Correspondingly, the determining the display attribute of the interaction result corresponding to the touch operation according to the elastic wave data, and updating the interaction result on the display screen according to the position data and the display attribute starting from the response moment, includes: Determining a corresponding default contact shape according to the elastic wave data, and replacing a shape corresponding to the contact range with the default contact shape; The default contact shape is moved according to the position data starting from the response moment, so as to update the interaction result on the display screen.

3. The touch response method according to claim 1, characterized in that: The step of caching the position data into a first cache queue and caching the elastic wave data into a second cache queue is specifically as follows: Confirm that the position data and elastic wave data are generated within the first time period, cache the position data in the first cache queue, and cache the elastic wave data in the second cache queue.

4. The touch response method according to claim 2, characterized in that: The display attributes also include color and operation type.

5. The touch response method according to claim 4, characterized in that: The operation types include input operations and erase operations.

6. The touch response method according to claim 1, characterized in that: The first cache queue and the second cache queue are both first-in-first-out queues.

7. A touch response device for an interactive tablet, the interactive tablet comprising a display screen, a touch module and an elastic wave sensor, characterized in that: include: A data receiving unit, used for receiving the position data generated by the touch module and the elastic wave data generated by the elastic wave sensor when the display screen detects a touch operation; A data cache unit, used for caching the position data into a first cache queue and caching the elastic wave data into a second cache queue, wherein the first cache queue and the second cache queue are associated with each other; A data polling unit, used for polling the first cache queue and the second cache queue to confirm a response time when data appears in the first cache queue and the second cache queue at the same time; An operation response unit, configured to confirm a display attribute of an interaction result corresponding to the touch operation according to the elastic wave data, and update the interaction result on the display screen according to the position data and the display attribute starting from the response moment; A data filtering unit, used for determining the time when the touch operation is detected and elastic wave data is obtained, and if the time when the position data is obtained exceeds a second time period, the elastic wave data is ignored; A second response unit, used to respond to the touch operation according to the position data, specifically used to determine the operation type and the corresponding display attribute according to the size of the contact position, and respond; The data polling unit comprises: A time confirmation module, used for polling the first cache queue and the second cache queue, obtaining a first time when the first cache queue starts to have position data, and obtaining a second time when the second cache queue starts to have elastic wave data; The timing confirmation module is used to use the later one of the first moment and the second moment as the response moment.

8. A terminal device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the terminal device implements the touch response method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the touch response method as described in any one of claims 1 to 6 is implemented.