Touch erasing method and touch device
By collecting and judging touch data in the touch device and sending area data only when a specific threshold is reached, the problem of low transmission efficiency in the existing technology is solved, and efficient data transmission during erasing and writing is achieved.
Patent Information
- Application Number
- CN202210293199.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-03-23
AI Technical Summary
Existing handwriting software sends the same data information during erasing and writing operations, resulting in increased transmission volume and reduced transmission efficiency.
By collecting touch data, it is determined whether the first preset threshold is reached, and serial port data carrying area data is sent to the system chip. The system chip then determines whether the area data reaches the second preset threshold. If so, the eraser is called to erase, otherwise graphics are drawn.
The amount of data transmitted is reduced and the transmission efficiency is improved, especially when the palm is placed on the touch screen, only the area information is sent, and in other cases only the coordinate data is sent.
Smart Images

Figure CN114661183B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of touch technology, and in particular to a touch erasing method and a touch device. Background Art
[0002] With the development of touch technology, touch screens have been widely used in various terminal devices. To facilitate users to intuitively input or erase text, graphics, and other content through touch screens, current handwriting software cannot distinguish between erasing and writing. Therefore, regardless of whether the user is erasing or writing, the same data information is transmitted, resulting in increased transmission volume and reduced transmission efficiency. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a touch erasing method and a touch device, which solve the problem of low transmission efficiency of current handwriting software.
[0004] An embodiment of the present invention provides a touch erasing method comprising:
[0005] Collecting touch data, and determining whether the touch data reaches a first preset threshold;
[0006] If the touch data reaches the first preset threshold, sending first serial port data carrying area data to the system chip;
[0007] When the system chip obtains the first serial port data carrying the area data, it determines whether the area data reaches a second preset threshold;
[0008] If the area data reaches the second preset threshold, the system chip calls an eraser to erase.
[0009] In one embodiment, the touch data includes the sum of the sensing quantities of all valid touch coordinate points;
[0010] The step of collecting touch data includes:
[0011] Obtaining the sensing value of the effective touch coordinate point based on the change in the received signal strength before and after the touch;
[0012] The sensing quantities of all the valid touch coordinate points are added together to obtain the sum of the sensing quantities of all the valid touch coordinate points.
[0013] In one embodiment, the step of determining whether the touch data reaches a first preset threshold comprises:
[0014] It is determined whether the sum of the sensing quantities of all the valid touch coordinate points reaches a first preset threshold.
[0015] In one embodiment, the touch data includes the total number of valid touch coordinate points;
[0016] The step of determining whether the touch data reaches a first preset threshold comprises:
[0017] It is determined whether the total number of the valid touch coordinate points reaches a first preset threshold.
[0018] In one embodiment, the method further comprises:
[0019] If the touch data does not reach the first preset threshold, the second serial port data without the area data is sent to the system chip.
[0020] In one embodiment, the second serial port data includes coordinate data, and the method further includes:
[0021] When the system chip obtains the second serial port data, it draws graphics based on the coordinate data.
[0022] In one embodiment, the first serial port data includes coordinate data; and the method further includes:
[0023] If the area data does not reach the second preset threshold, graphics are drawn based on the coordinate data.
[0024] A touch device includes a touch panel and a system chip; the touch panel includes:
[0025] An acquisition module, used for collecting touch data;
[0026] a first determining module, configured to determine whether the touch data reaches a first preset threshold; if the touch data reaches the first preset threshold, the touch panel sends first serial port data carrying area data to the system chip;
[0027] The system chip includes: a receiving module for acquiring the first serial port data with area data; a second judging module for judging whether the area data reaches a second preset threshold; and an erasing module for calling an eraser for erasing.
[0028] An electronic device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the touch erasing method described above is executed.
[0029] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the touch erasing method described above.
[0030] Embodiments of the present invention provide a touch erasing method and apparatus, a touch device, and a computer-readable storage medium. The touch erasing method collects touch data and determines whether the touch data reaches a first preset threshold. If the touch data reaches the first preset threshold, first serial port data carrying area data is sent to a system chip. Upon receiving the first serial port data carrying area data, the system chip determines whether the area data reaches a second preset threshold. If the area data reaches the second preset threshold, the system chip uses an eraser to erase the area. The touch erasing method of the present invention allows only coordinate data to be sent during normal writing, without area information. Area information is only sent when a palm is placed on the touch screen, thereby reducing data transmission and improving transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 FIG2 is a flow chart of a touch erasing method provided in accordance with an embodiment of the present invention.
[0032] Figure 2 FIG2 is a flow chart of a touch erasing method provided in another embodiment of the present invention.
[0033] Figure 3a and 3b FIG. 1 is a schematic diagram of a capacitive touch control principle according to an embodiment of the present invention.
[0034] Figure 4 FIG. 1 is a schematic diagram of valid touch coordinate points provided by an embodiment of the present invention.
[0035] Figure 5 FIG2 is a flow chart of a touch erasing method provided in another embodiment of the present invention.
[0036] Figure 6 FIG2 is a schematic structural diagram of a touch erasing device provided by another embodiment of the present invention.
[0037] Figure 7 FIG2 is a schematic structural diagram of a touch device provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0039] The inventors of this application have discovered that current touch-screen handwriting software contains a function that allows users to directly access the eraser by placing their palm on it. Currently, data is transmitted between the capacitive touchpad and the SoC (System on Chip) motherboard via a UART (Universal Asynchronous Receiver / Transmitter). The touchpad uploads data to the SoC, which then issues commands to the touchpad. During erasing, the capacitive control card must send area information via a serial port to determine whether to start erasing. Normally, users only need to send coordinate information when writing. However, in current touch-screen handwriting software, the capacitive control card also sends area information when the user is writing. This redundant step of determining whether to start erasing based on the area information adds four bytes compared to sending only coordinate information, increasing the data volume by 33% and affecting transmission efficiency. Furthermore, the currently used serial port protocol requires the SoC to issue a command before the capacitive control card uploads data with area information. Directly uploading data with area information is inconsistent with the currently used serial port protocol, and this method of sending data disrupts the currently used serial port protocol.
[0040] In one embodiment of the present invention, Figure 1 As shown, the touch erasing method includes:
[0041] Step 01: Collect touch data and determine whether the touch data reaches a first preset threshold.
[0042] Optionally, the touch data includes at least one of the sum of the sensing quantities of all valid touch coordinate points and the total number of valid touch coordinate points.
[0043] Optionally, as in Figure 2 As shown, when the touch data is the sum of the sensing quantities of all valid touch coordinate points, the steps of collecting touch data include:
[0044] Step 0111: Collect the change in the received signal strength before and after the touch, and determine whether it is a valid touch based on the change in the received signal strength before and after the touch. Figure 3a As shown, the transmitting end TX of the touch capacitor of the touch panel transmits a high-frequency signal, and the receiving end RX of the touch capacitor detects the received signal strength, such as Figure 3bAs shown, when a palm, finger, or capacitive pen touches the capacitive screen, part of the signal energy is absorbed, thereby affecting the coupling between the two touch capacitor electrodes near the touch point, thereby changing the capacitance between the two electrodes, resulting in a decrease in the signal strength received by the receiving end RX. The received signal strength before the touch and the received signal strength after the touch are collected respectively, and the change in the received signal strength before and after the touch is calculated. It is then determined whether the change in the received signal strength before and after the touch reaches a set threshold value. If so, the point is confirmed to be a valid touch; otherwise, the point is confirmed to be an invalid touch.
[0045] Step 0112: If yes, obtain the valid touch coordinate points of the valid touch area. The position of each valid touch point on the touch panel is a valid touch coordinate point. When a valid touch is confirmed, the coordinates corresponding to the point are calculated as the valid touch coordinate point. Optionally, the valid touch coordinate point is a 2D coordinate.
[0046] Step 0113: The induction amount of the effective touch coordinate point is obtained based on the change in the received signal strength before and after the touch. The induction amount is obtained by AD conversion and algorithm processing of the change in the received signal strength before and after the touch. The induction amount of the effective touch coordinate point is used to confirm the coordinate position of the actual touch, and can also be used to determine whether it is a single-point touch or a large-area touch; for example, when the palm touches, the coordinate points with high induction amount are more than the coordinate points with high induction amount of the finger; the induction amount of the effective touch coordinate point can be used to measure the type of touch mode. Optionally, the touch mode includes at least one of palm touch, finger touch or capacitive pen touch. For example, the effective touch coordinate point can refer to Figure 4 As shown in the figure, if the threshold of the sensing value is set to 100, then the touch points with a value higher than 100 are valid touch points, that is, the points with grayscale in the figure are valid touch coordinate points. The numbers in the grid in the figure represent the sensing value of the valid touch coordinate points.
[0047] Step 0114: Add the sensing quantities of all the valid touch coordinate points to obtain the sum of the sensing quantities of all the valid touch coordinate points.
[0048] Wherein, when the touch data is the sum of the sensing quantities of all valid touch coordinate points, the step of determining whether the touch data reaches the first preset threshold includes: determining whether the sum of the sensing quantities of all valid touch coordinate points reaches the first preset threshold.
[0049] Method 2: Optionally, such as Figure 5 As shown, when the touch data is the total number of valid touch coordinate points, the steps of collecting touch data include:
[0050] Step 0121: Collect the change in received signal strength before and after the touch, and determine whether it is a valid touch based on the change in received signal strength before and after the touch.
[0051] Step 0122: If yes, obtain the effective touch coordinate points of the effective touch area.
[0052] The specific methods of step 0121 and step 0122 can be found in step 0111 and step 0112 in method one, and will not be repeated here.
[0053] Step 0123: Calculate the total number of valid touch coordinate points.
[0054] Wherein, when the touch data is the total number of valid touch coordinate points, the step of determining whether the touch data reaches a first preset threshold includes: determining whether the total number of valid touch coordinate points reaches the first preset threshold.
[0055] Step 02: If the touch data reaches the first preset threshold, first serial port data carrying area data is sent to the system chip; if the touch data does not reach the first preset threshold, second serial port data without area data is sent to the system chip, and second serial port data only carrying coordinate data is uploaded. When the system chip obtains the second serial port data, graphics are drawn based on the coordinate data to complete normal writing.
[0056] Optionally, the area data includes the length and width of the effective touch range.
[0057] Step 03: After obtaining the first serial port data containing the area data, the system chip determines whether the area data reaches a second preset threshold.
[0058] Step 4: If the area data reaches the second preset threshold, the system chip invokes an eraser to erase the data. Specifically, if the area data reaches the second preset threshold, the eraser invoked by the system chip performs an erase operation based on the area data. In addition to the area data, the first serial port data also includes coordinate data. If the area data does not reach the second preset threshold, the system chip performs a graphic drawing based on the coordinate data to complete normal writing.
[0059] An embodiment of the present invention provides a touch device 100, such as Figure 6 As shown, the touch device 100 includes a touch panel 10 and a system chip 20. The touch panel 10 includes: an acquisition module 101, a first judgment module 102 and a sending module 103.
[0060] The acquisition module 101 is used to collect touch data;
[0061] The first judgment module 102 is used to judge whether the touch data reaches a first preset threshold;
[0062] The sending module 103 is used to send the first serial port data carrying the area data to the system chip;
[0063] The system chip 20 includes: a receiving module 201, a second judging module 202 and an erasing module 203. The receiving module 201 is used to obtain the first serial port data with the area data;
[0064] The second judgment module 202 is used to judge whether the area data reaches a second preset threshold;
[0065] The erasing module 203 is used to call an eraser to perform erasing.
[0066] After the acquisition module 101 of the touch panel 10 acquires the touch data; the first judgment module 102 of the touch panel 10 determines whether the touch data reaches a first preset threshold; if so, the sending module 103 of the touch panel 10 is used to send the first serial port data carrying the area data to the system chip; after the receiving module 201 of the system chip 20 obtains the first serial port data carrying the area data uploaded by the sending module 103; the second judgment module 202 of the system chip 20 determines whether the area data reaches a second preset threshold; if so, the erasing module 203 of the system chip 20 calls the eraser to erase.
[0067] In addition, the system chip 20 also includes a graphics drawing module 204. If the first judgment module 102 of the touch panel 10 determines that the touch data does not reach the first preset threshold, the sending module 103 of the touch panel 10 sends the first serial port data without area data to the system chip 20. After the receiving module 201 of the system chip 20 obtains the second serial port data uploaded by the touch panel without area data but only with coordinate data, the graphics drawing module 204 draws graphics based on the coordinate data of the second serial port data.
[0068] If the first judgment module 102 of the touch panel 10 determines that the touch data reaches the first preset threshold, the sending module 103 sends the first serial port data carrying the area data to the system chip 20; when the receiving module 201 of the system chip 20 obtains the first serial port data uploaded by the touch panel 10 that not only carries the area data but also carries the coordinate data, the second judgment module 202 determines whether the area data reaches the second preset threshold; if the area data does not reach the second preset threshold, the graphics drawing module 204 draws graphics based on the coordinate data.
[0069] Optionally, the acquisition module 101 is further configured to:
[0070] Collecting a change in received signal strength before and after the touch, and determining whether it is a valid touch based on the change in received signal strength before and after the touch;
[0071] If yes, obtaining the effective touch coordinate point of the effective touch area;
[0072] Obtaining the sensing value of the effective touch coordinate point based on the change in the received signal strength before and after the touch;
[0073] The sensing quantities of all the valid touch coordinate points are added together to obtain the sum of the sensing quantities of all the valid touch coordinate points.
[0074] The first determination module 102 is further configured to determine whether the sum of the sensing quantities of all valid touch coordinate points reaches a first preset threshold.
[0075] The first determination module 102 is further configured to determine whether the total number of valid touch coordinate points reaches a first preset threshold.
[0076] The sending module 103 is further configured to send the second serial port data without the area data to the system chip if the touch data does not reach the first preset threshold.
[0077] This embodiment provides an electronic device that may include a memory and a processor. The memory stores a computer program that, when executed by the processor, implements the touch erase method described in the above embodiment. It is understood that the electronic device may also include an input / output (I / O) interface and a communication component.
[0078] The processor is used to execute all or part of the steps in the touch erase method in the embodiment. The memory is used to store various types of data, such as instructions of any application or method in the electronic device, and data related to the application.
[0079] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the touch erase method in the above embodiment.
[0080] The memory can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0081] In actual applications, the above-mentioned touch device also includes a touch panel, which is used to send first serial port data with area data to the processor when receiving a first instruction, and upload second serial port data without area data when the touch data does not reach a first preset threshold.
[0082] In one implementation, the touch panel uploads position data via a capacitive control card. The processor may be a system-level chip. The capacitive control card sends the position data via a serial port. Optionally, data is transmitted between the touch panel and the system-level chip via UART. The touch panel uploads data to the system-level chip, and the system-level chip sends commands to the touch panel. Figure 7 shown.
[0083] This embodiment also provides a computer-readable storage medium. The functional units in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. If the functions are implemented as software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium.
[0084] Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention.
[0085] The aforementioned storage media include: flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, server, APP application store, and other media that can store program check codes, on which a computer program is stored. When the computer program is executed by a processor, the following method steps can be implemented:
[0086] Step 01: Collect touch data and determine whether the touch data reaches a first preset threshold;
[0087] Step 02: If the touch data reaches the first preset threshold, sending first serial port data carrying area data to the system chip;
[0088] Step 03: After obtaining the first serial port data containing the area data, the system chip determines whether the area data reaches a second preset threshold;
[0089] Step 04: If the area data reaches the second preset threshold, the system chip calls the eraser to erase.
[0090] The specific implementation methods and the effects produced can be referred to the above embodiments, and the present invention will not be described in detail here.
[0091] Those skilled in the art will appreciate that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0092] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. On the other hand, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0093] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of this application. In addition, the specific details disclosed above are merely illustrative and facilitating understanding, and are not restrictive. The above details do not limit this application to necessarily being implemented using the above specific details.
[0094] The block diagrams of devices, apparatuses, equipment, and systems referred to in this application are intended only as illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems may be connected, arranged, or configured in any manner.
[0095] It should also be noted that in the apparatus, device, and method of the present application, each component or each step can be decomposed and / or recombined, and such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0096] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0097] In the description of the application, the meaning of "multiple" is at least two, for example two, three, etc., unless otherwise clearly and specifically limited. In the embodiments of the present application, all directional indications (such as up, down, left, right, front, back, top, bottom ...) are only used to explain the relative position relationship, motion situation, etc. between each component under a certain specific posture (as shown in the drawings). If this specific posture changes, this directional indication also changes accordingly. In addition, the terms "comprise" and "have" and any deformation thereof are intended to cover non-exclusive inclusion. For example, the process, method, system, product or equipment comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes the steps or units not listed, or optionally also includes other steps or units inherent to these processes, methods, products or equipment.
[0098] In addition, references to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of such phrases in various places in the specification does not necessarily refer to the same embodiment, nor does it necessarily refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0099] The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art who can easily think of changes or replacements within the technical scope disclosed by the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims. The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent replacements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A touch erasing method, characterized in that: include: The touch panel collects touch data and determines whether the touch data reaches a first preset threshold; If the touch data reaches the first preset threshold, the touch panel sends first serial port data carrying area data to the system chip, the first serial port data including coordinate data; if the touch data does not reach the first preset threshold, the touch panel sends second serial port data without area data to the system chip, the second serial port data including coordinate data; When the system chip obtains the first serial port data with area data, it determines whether the area data reaches a second preset threshold; if the area data reaches the second preset threshold, the system chip calls the eraser to erase; When the system chip obtains the second serial port data, it draws graphics based on the coordinate data.
2. The touch erasing method according to claim 1, wherein: The touch data includes the sum of the sensing quantities of all valid touch coordinate points; The step of collecting touch data includes: Obtaining the sensing value of the effective touch coordinate point based on the change in the received signal strength before and after the touch; The sensing quantities of all the valid touch coordinate points are added together to obtain the sum of the sensing quantities of all the valid touch coordinate points.
3. The touch erasing method according to claim 2, wherein: The step of determining whether the touch data reaches a first preset threshold comprises: It is determined whether the sum of the sensing quantities of all the valid touch coordinate points reaches a first preset threshold.
4. The touch erasing method according to claim 1, wherein: The touch data includes the total number of valid touch coordinate points; The step of determining whether the touch data reaches a first preset threshold comprises: It is determined whether the total number of the valid touch coordinate points reaches a first preset threshold.
5. The touch erasing method according to claim 1, wherein: The method further comprises: If the area data does not reach the second preset threshold, graphics are drawn based on the coordinate data.
6. A touch device, characterized in that: Including touch panel and system chip; The touch panel includes: an acquisition module for acquiring touch data; a first determination module for determining whether the touch data reaches a first preset threshold; a sending module for sending first serial port data carrying area data to a system chip, wherein the first serial port data includes coordinate data; if the touch data does not reach the first preset threshold, the touch panel sends second serial port data without area data to the system chip, wherein the second serial port data includes coordinate data; The system chip includes: a receiving module for obtaining the first serial port data containing area data; a second judgment module for judging whether the area data reaches a second preset threshold; an erasing module for calling an eraser for erasing; when the system chip obtains the second serial port data, it draws graphics based on the coordinate data.
7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the touch erasing method according to any one of claims 1 to 5 is executed.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the touch erasing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for switching writing and erasing functions on touch screen
CN103353828A
Method and device for erasing screen content
CN111506215A