A writing method, device, equipment and storage medium based on a touch screen

By independently processing the initial display data of the touch screen and the writing data of the touch handwriting, the problem of touch screen writing delay is solved, a smoother writing experience is achieved, and hardware costs are reduced.

CN115145410BActive Publication Date: 2025-06-27XIAN QINGSONG PHOTOELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110335604.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2025-06-27
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

Existing electronic devices have obvious handwriting delays when writing on touch screens, causing users to feel that the pen arrives first and the handwriting arrives later, which affects the user experience.

Method used

The initial display data of the touch screen sent by the first chip and the position information and color information of the current touch handwriting are received, and the color information is written into the data memory. Then, when the initial display data that meets the preset conditions is received, the color information of the target display data is determined based on the initial display data and the color information in the memory, and output it to the touch screen for display.

Benefits of technology

It effectively reduces the writing delay of the touch screen, makes the user experience better, and reduces the requirements for SoC chips and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115145410B_ABST
    Figure CN115145410B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a writing method, device, equipment and storage medium based on a touch screen. The method includes: receiving initial display data of the touch screen determined and sent by a first chip, as well as position information and color information of pixel points corresponding to a current touch handwriting in the touch screen, and writing the color information into a storage space corresponding to the position information in a data memory; when it is determined that the initial display data of the touch screen sent by the first chip meets a preset condition, determining color information of each pixel point in target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory; and outputting the color information of the target display data to the touch screen for display. The above solution independently processes the received initial display data of the touch screen and the touch handwriting respectively, so that the current touch handwriting can be fused with the current initial display data, effectively reducing the writing delay of the touch screen and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of touch screen data processing, and in particular, to a writing method, device, equipment and storage medium based on a touch screen. Background Art

[0002] With the development of touch technology, the touch function has become an essential function in some electronic devices such as conference tablets, and writing on the touch screen is also increasing.

[0003] At present, there is an obvious handwriting delay phenomenon when writing on electronic devices, that is, when the pen slides across the screen, the human eye can clearly perceive that the pen arrives first and the handwriting arrives later, which affects the user experience. Summary of the Invention

[0004] The embodiments of the present invention provide a writing method, device, equipment and storage medium based on a touch screen, which can effectively reduce the writing delay of the touch screen.

[0005] In a first aspect, the embodiments of the present invention provide a writing method based on a touch screen, including:

[0006] Receiving the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and writing the color information into the storage space corresponding to the position information in the data memory;

[0007] When the initial display data of the touch screen sent by the first chip meets a preset condition, determining the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory;

[0008] Outputting the color information of each pixel point of the target display data to the touch screen for display.

[0009] In a second aspect, the embodiments of the present invention further provide a writing device based on a touch screen, including:

[0010] A receiving module, configured to receive the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and write the color information into the storage space corresponding to the position information in the data memory;

[0011] A color information determination module, configured to determine the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory when the initial display data of the touch screen sent by the first chip meets a preset condition;

[0012] An output module, configured to output the color information of each pixel of the target display data to the touch screen for display.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, including a touch screen, and further including a first chip, a second chip, and a data memory; the first chip is respectively connected to the touch screen and the second chip, and the second chip is also respectively connected to the data memory and the touch screen;

[0014] The first chip is configured to determine and send the initial display data of the touch screen, as well as the position information and color information of the pixels corresponding to the current touch handwriting in the touch screen, to the second chip, and write the color information into the storage space corresponding to the position information in the data memory;

[0015] The data memory is configured to read the position information and color information of the pixels corresponding to the touch handwriting in the second chip;

[0016] The second chip is configured to, when the initial display data of the touch screen sent by the first chip meets a preset condition, determine the color information of each pixel in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory, and output the color information of each pixel of the target display data to the touch screen for display.

[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, and the computer-executable instructions, when executed by a corresponding chip, are used to execute the writing method based on a touch screen as described in the first aspect.

[0018] An embodiment of the present invention provides a writing method, device, device, and storage medium based on a touch screen. By receiving the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixels corresponding to the current touch handwriting in the touch screen, and writing the color information into the storage space corresponding to the position information in the data memory; when the initial display data of the touch screen sent by the first chip meets a preset condition, determine the color information of each pixel in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory; output the color information of each pixel of the target display data to the touch screen for display. The above solution independently processes the received initial display data of the touch screen and the touch handwriting respectively, so that the current touch handwriting can be fused with the current initial display data, effectively reducing the writing delay of the touch screen and improving the user experience. Description of the Drawings

[0019] Figure 1 A schematic diagram of a process for processing touch screen writing provided by the prior art;

[0020] Figure 2 A flowchart of a writing method based on a touch screen provided in Embodiment 1 of the present invention;

[0021] Figure 3 A flowchart of a writing method based on a touch screen provided in Embodiment 2 of the present invention;

[0022] Figure 4 A structural diagram of a writing device based on a touch screen provided in Embodiment 3 of the present invention;

[0023] Figure 5 A structural diagram of an electronic device provided in Embodiment 4 of the present invention. Detailed implementation manners

[0024] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. In addition, it should be noted that only parts related to the present invention rather than all structures are shown in the drawings for the convenience of description. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0025] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operations are completed, but it can also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0026] Currently, the processing of touch screen writing is implemented by a System on Chip (SoC). Refer to Figure 1 , the input processor 11 of the SoC chip 1 receives the initial display data of the touch screen 2 and the writing data of the touch screen 2, converts the writing data of the touch screen 2 into an image and then fuses it with the initial display data of the touch screen, and then stores the fused image in the data memory 12. The image processing module 13 repeatedly reads and writes the image in the data memory 12 and performs image processing, stores the final image in the data memory 12, and passes it to the output processor 14. After being processed by the output processor 14, it is output to the touch screen 2 for display. By Figure 1It can be seen that the process undergoes multiple image processing, and a large delay is generated from input to output, resulting in a situation where when writing on the touch screen 2 with a stylus pen, the user will obviously feel that the pen arrives first and the handwriting arrives later, thus affecting the user's use. This solution is to improve the above writing processing method to reduce the writing delay of the touch screen and improve the user experience.

[0027] Embodiment 1

[0028] Figure 2 This is a flowchart of a touch screen-based writing method provided in Embodiment 1 of the present invention. The method is applicable to writing on an electronic device that supports touch function, and can effectively reduce the writing delay of the touch screen. The method can be executed by a touch screen-based writing device, which can be implemented by software and / or hardware and can be integrated on an electronic device with touch function. The electronic device can be an interactive device including a touch screen, such as an electronic whiteboard, a conference tablet, etc. Figure 2 , the method may include the following steps:

[0029] S110, receiving the initial display data of the touch screen determined and sent by the first chip and the position information and color information of the pixel point corresponding to the current touch handwriting in the touch screen, and writing the color information into the storage space corresponding to the position information in the data memory.

[0030] The first chip can be a SoC chip. Figure 1 Unlike the SoC chip in the embodiment, the SoC chip of this embodiment is only used to send the initial display data of the touch screen to the second chip, and to identify the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and send them to the second chip. There is no need to use high-end SoC chips, which reduces the requirements for SoC chips and reduces costs. The embodiment does not specifically limit the recognition process of touch handwriting. The initial display data is the display data of the corresponding display screen when the touch screen does not detect the touch handwriting. The display screen can come from this device or from other devices. Optionally, before sending the initial display data of the touch screen, the first chip can process the initial display data, for example, it can adjust the frame rate, clarity or size of the screen corresponding to the initial display data, so as to adjust the initial display data and meet the user's display requirements for subsequent display screens.

[0031] The second chip can be an FPGA (Field Programmable Gate Array). On the one hand, the FPGA in this embodiment can receive the initial display data sent by the SoC chip. On the other hand, it can also receive the position information and color information of the pixel points corresponding to the touch handwriting sent by the SoC chip, and write the color information of each pixel point into the storage space corresponding to the position information in the data memory, providing a basis for determining the target display data of the touch screen. Compared with the traditional method of fusing the initial display data of the touch screen and the writing data corresponding to the touch handwriting by the SoC chip, this embodiment adds a second chip to process the initial display data and the writing data corresponding to the touch handwriting, reducing the writing delay and the requirements for the SoC chip, and thus reducing the cost.

[0032] The data memory is used to store image data with fixed values. The size of this image data can be the same as the size of the initial display data. For example, if the size of the initial display data is 1080*1080, then the size of the image data stored in the data memory is also 1080*1080, where 1080 represents the number of pixel points. The fixed value is the value corresponding to the color of each pixel point. This color can be an uncommon color, such as purple, that is, the color of each pixel point corresponding to the image data is purple. Optionally, the data memory can use DDR (Double Data Rate, double-speed synchronous dynamic random access memory). In actual application, the DDR can read the position information and color information of the pixel points from the FPGA and write the color information into the storage space corresponding to the position information. This storage space is the space corresponding to the image data. For example, if the pixel point corresponding to the touch handwriting is located in the third row of the touch screen and the color is red, then the DDR can replace the color of the pixel point corresponding to the third row of the image data from purple to red.

[0033] In actual application, one or two DDRs can be used. When one DDR is used, the read operation and write operation of the DDR cannot be performed simultaneously, that is, the DDR can perform a read operation or a write operation at the same time point. When two DDRs are used, for the convenience of description, the two DDRs can be respectively denoted as the first DDR and the second DDR. Optionally, the first DDR can perform the read operation to read the position information and color information of the pixel points from the SoC chip, and the second DDR can perform the write operation to write the color information read by the first DDR into the corresponding storage space. Compared with the traditional method, the DDR in this embodiment can process the writing data corresponding to the touch handwriting separately, so that the processing of the touch handwriting and the processing of the initial display data are carried out separately, reducing the process of first fusing the initial display data and the writing data and then repeatedly processing the fused data, and reducing the writing delay.

[0034] S120. When the initial display data of the touch screen sent by the first chip meets a preset condition, determine the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory.

[0035] When the first chip sends the initial display data of the touch screen, it can send it pixel by pixel. For the convenience of the second chip's processing, optionally, when the data sent is the data corresponding to the last pixel point of the current row or the data corresponding to the first pixel point of the next row, the first chip can mark this data to indicate the end of the data of the current row or the start of the data of the next row. The preset condition is used to indicate that the second chip can fuse the initial display data and the writing data corresponding to the touch handwriting. Optionally, the preset condition can be that the initial display data of the touch screen sent by the first chip is the initial display data of the next row. That is, when the first chip sends the initial display data of the next row to the second chip, it is considered that the initial display data meets the preset condition. For example, when the first chip is currently sending the initial display data of the first row, when receiving the second row of initial display data sent by the first chip, it is considered that the received initial display data meets the preset condition. Of course, it is not limited to the first row, and it can also be other rows. As long as the received initial display data is the next row of other rows, it is considered that the received initial display data meets the preset condition.

[0036] Specifically, when the initial display data of the touch screen sent by the first chip meets the preset condition, the initial display data and the writing data corresponding to the touch handwriting can be fused to obtain the target display data. Compared with the traditional method, in this embodiment, the initial display data and the writing data after separate processing are fused, reducing the process of multiple image processing and reducing the writing delay. Optionally, when receiving the initial display data of the next row, the position information and color information of the initial display data of the previous row can be obtained, and based on this position information, the color information at the same position is obtained from the data memory, and the color information at the corresponding position in the target display data is determined based on the two color information. For example, when the color information at the same position in the data memory is the same as the color information of the image data prestored in the data memory, it means that there is no touch handwriting at this position, so the initial display data at this position can be used as the target display data, and the color information of the pixel point corresponding to the target display data is the color information of the pixel point corresponding to the initial display data; otherwise, the color information stored in the data memory can be used to overwrite the color information of the pixel point corresponding to the initial display data at the corresponding position. Of course, other methods can also be used to determine the color information of the pixel point corresponding to the target display data, and the embodiment does not make specific limitations.

[0037] S130: Output the color information of each pixel of the target display data to the touch screen for display.

[0038] The touch handwriting is independently processed by the second chip and the data processor, so that the touch handwriting can be integrated with the current frame image and displayed within the current frame image, which significantly reduces the writing delay and enhances the user experience.

[0039] Embodiment 1 of the present invention provides a writing method based on a touch screen, which receives the initial display data of the touch screen determined and sent by a first chip and the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and writes the color information into the storage space corresponding to the position information in the data storage device; when the initial display data of the touch screen received and sent by the first chip meets the preset conditions, the color information of each pixel point in the target display data is determined according to the color information of the initial display data and the color information of the corresponding position in the data storage device; the color information of each pixel point of the target display data is output to the touch screen for display. The above scheme processes the received initial display data and touch handwriting of the touch screen independently, so that the current touch handwriting can be integrated with the current initial display data, effectively reducing the writing delay of the touch screen and improving the user experience.

[0040] Embodiment 2

[0041] Figure 3 A flowchart of a touch screen-based writing method provided for Embodiment 2 of the present invention is a specific embodiment of the above embodiment. According to the color information of the initial display data and the color information of the corresponding position in the data storage device, the color information of each pixel in the target display data is determined, which can be specific as follows: reading the first color information of the previous row of initial display data of the touch screen sent by the first chip and the second color information of the pixel at the same position as the previous row of initial display data in the data storage device; if the second color information is the same as the initial color of the pixel at the same position in the data storage device, the first color information is used as the color information of each pixel in the target display data; otherwise, the color information of each pixel in the target display data is determined according to the first color information and the second color information.

[0042] like Figure 3 As shown, the second embodiment of the present invention provides a writing method based on a touch screen, which may include the following steps:

[0043] S210. Receive the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and write the color information into the storage space corresponding to the position information in the data memory.

[0044] S220. Determine whether the received initial display data is the initial display data of the next line of the touch screen. If so, execute S230; otherwise, return to execute S210.

[0045] In this embodiment, the preset condition takes whether the received initial display data is the initial display data of the next line as an example.

[0046] S230. Read the first color information of the initial display data of the previous line of the touch screen sent by the first chip and the second color information of the pixel points at the same position as the initial display data of the previous line in the data memory.

[0047] The first color information is the color information of the pixel points corresponding to the initial display data of the previous line, and the second color information is the color information of the pixel points at the same position as the initial display data of the previous line in the data memory. Specifically, when the received initial display data is the initial display data of the next line, the color information of the pixel points corresponding to the initial display data of the previous line, that is, the first color information, and the color information of the pixel points at the same position as the initial display data of the previous line in the data memory, that is, the second color information, can be read.

[0048] S240. Determine whether the second color information is the same as the initial color of the pixel points at the same position in the data memory. If so, execute S250; otherwise, execute S260.

[0049] The initial color information of the pixel points at the same position in the data memory is the color information corresponding to the image data of a fixed value pre-stored in the data memory. Specifically, when determining the color information of the pixel points corresponding to the target display data, the read second color information can be compared with the initial color information at this position, and the color information corresponding to the target display data can be determined according to the comparison result.

[0050] S250. Use the first color information as the color information of each pixel point in the target display data.

[0051] Specifically, if the second color information is the same as the initial color information at this position, it means that there is no touch handwriting at this position. Therefore, the original display screen of the touch screen can be directly output, that is, the color information of the pixel points corresponding to the initial display data is used as the color information of the pixel points corresponding to the target display data.

[0052] S260. Determine the color information of each pixel in the target display data according to the first color information and the second color information.

[0053] When the second color information is different from the initial color at the corresponding position, it indicates that there is a touch handwriting at this position. Thus, the color information of the pixel corresponding to the target display data can be determined based on the first color information and the second color information.

[0054] In one example, the color information at the corresponding position in the data memory can directly overwrite the color information of the initial display data to obtain the target display data, enabling the touch screen to display the actual color of the touch handwriting and meeting the scenarios with clear requirements for touch handwriting. Correspondingly, S260 can be specifically implemented as: replacing the first color information with the second color information, and using the replaced first color information as the color information of each pixel in the target display data. For example, if the second color information is red and the first color information is white, then the color information of the pixel corresponding to the target display data is red.

[0055] In one example, the first color information and the second color can also be fused according to a certain weight to obtain the target display data to meet the personalized needs of users for touch handwriting. Correspondingly, S260 can be specifically implemented as: determining the first weight corresponding to the first color information and the second weight corresponding to the second color information; accumulating the first weighted result of the first weight and the first color information and the second weighted result of the second weight and the second color information to obtain the color information of each pixel in the target display data. The magnitudes of the first weight and the second weight can be set according to actual needs, and the first weight and the second weight can be the same or different. For example, the first weight can be set to 0.3 and the second weight can be set to 0.7, that is, the value corresponding to the first color information is multiplied by 0.3, and then added to the value corresponding to the second color information multiplied by 0.7 to obtain the color information of the pixel corresponding to the target display data. On the basis of not affecting the latency, the weight ratio fusion of the touch handwriting and the initial display data is achieved, meeting the personalized needs of users.

[0056] S270. Output the color information of each pixel of the target display data to the touch screen for display.

[0057] Embodiment 2 of the present invention provides a writing method based on a touch screen. The writing data corresponding to the touch handwriting is independently processed by the second chip and the data memory, and then the processed writing data is fused with the initial display data of the touch screen, reducing the process of processing the image multiple times, enabling the touch handwriting to be displayed in the current frame image, significantly reducing the writing latency, improving the user experience, and at the same time reducing the requirements for the first chip, without deliberately using a high-end first chip, thereby reducing the cost.

[0058] It can be understood that the touch screen itself does not emit light, and the colors it displays are actually caused by the backlight source behind it. The lighting effect of the backlight source will affect the visual effect of the touch screen. The lighting effect of the backlight source is related to the backlight drive signal. Therefore, before outputting the color information of each pixel of the target display data to the touch screen for display, the method may further include:

[0059] Determine a backlight drive signal according to the color information of each pixel in the target display data;

[0060] Drive the backlight source of the touch screen according to the backlight drive signal, so that the backlight source displays the color information of each pixel in the target display data.

[0061] Different color information corresponds to different backlight drive signals. The specific determination process of the backlight drive signal is not limited in the embodiment. After the backlight drive signal is determined, the second chip can drive the backlight source of the touch screen based on the backlight drive signal, so that the backlight source displays the color information of the corresponding pixels of the target display data. The second chip in this embodiment can also drive the backlight source on the basis of reducing the writing delay, so that the backlight source displays the corresponding color information, and then presents it to the user through the touch screen, increasing the functions of the second chip.

[0062] Embodiment III

[0063] Figure 4 The figure is a structural diagram of a writing device based on a touch screen provided in Embodiment III of the present invention. This device can execute the touch-screen-based writing method described in the above embodiments. Referring to Figure 4 , this device may include:

[0064] A receiving module 31, configured to receive the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixels corresponding to the current touch trace in the touch screen, and write the color information into the storage space corresponding to the position information in the data memory;

[0065] A color information determination module 32, configured to determine the color information of each pixel in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory when the initial display data of the touch screen sent by the first chip meets a preset condition;

[0066] An output module 33, configured to output the color information of each pixel of the target display data to the touch screen for display.

[0067] Embodiment 3 of the present invention provides a writing device based on a touch screen. By receiving the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and writing the color information into the storage space corresponding to the position information in the data memory; when the initial display data of the touch screen sent by the first chip received satisfies a preset condition, according to the color information of the initial display data and the color information at the corresponding position in the data memory, determine the color information of each pixel point in the target display data; output the color information of each pixel point of the target display data to the touch screen for display. The above solution independently processes the received initial display data of the touch screen and the touch handwriting, so that the current touch handwriting can be fused with the current initial display data, effectively reducing the writing delay of the touch screen and improving the user experience.

[0068] Based on the above embodiment, receiving the initial display data of the touch screen sent by the first chip and satisfying the preset condition includes:

[0069] When the received initial display data is the initial display data of the next line of the touch screen, it is determined that the received initial display data satisfies the preset condition.

[0070] Based on the above embodiment, the color information determination module 32 includes:

[0071] A reading unit for reading the first color information of the initial display data of the previous line of the touch screen sent by the first chip and the second color information of the pixel points at the same position as the previous line of the initial display data in the data memory;

[0072] A color information determination unit for, if the second color information is the same as the initial color of the pixel points at the same position in the data memory, using the first color information as the color information of each pixel point in the target display data; otherwise, determining the color information of each pixel point in the target display data according to the first color information and the second color information.

[0073] Based on the above embodiment, the color information determination unit is specifically used for:

[0074] Replacing the first color information with the second color information, and using the replaced first color information as the color information of each pixel point in the target display data.

[0075] Based on the above embodiment, the color information determination unit is specifically used for:

[0076] Determining a first weight corresponding to the first color information and a second weight corresponding to the second color information;

[0077] Accumulate the first weighted result of the first weight and the first color information and the second weighted result of the second weight and the second color information to obtain the color information of each pixel point in the target display data.

[0078] Based on the above embodiments, the device may further include:

[0079] A backlight driving signal determining module, configured to determine a backlight driving signal according to the color information of each pixel point in the target display data before outputting the color information of each pixel point in the target display data to the touch screen for display;

[0080] A driving module, configured to drive the backlight of the touch screen according to the backlight driving signal, so that the backlight displays the color information of each pixel point in the target display data.

[0081] The writing device based on the touch screen provided in this embodiment can be used to execute the writing method based on the touch screen provided in the above embodiments, and has corresponding functions and beneficial effects.

[0082] Embodiment 4

[0083] Figure 5 It is a structural diagram of an electronic device provided in Embodiment 4 of the present invention. Refer to Figure 5 , the electronic device may include a touch screen 41, a first chip 42, a second chip 43, and a data memory 44. The first chip 42 is respectively connected to the touch screen 41 and the second chip 43, and the second chip 43 is also respectively connected to the data memory 44 and the touch screen 41. The first chip 42 may adopt an SoC. Different from traditional SoC chips, the SoC chip in this embodiment is only used to determine and send the initial display data of the touch screen 41 and the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen 41 to the second chip 43, and write the color information into the storage space corresponding to the position information in the data memory 44, which simplifies the function of the SoC chip, reduces the requirements for the SoC chip, and also reduces the cost. Optionally, before sending the initial display data to the second chip 43, the first chip 42 may process the image corresponding to the initial display data as needed, for example, may adjust the frame rate, size, and clarity of the image, etc., to make it meet the display requirements of the touch screen 41.

[0084] The second chip 43 can be an FPGA, and the data memory 44 can be a DDR. In this embodiment, on the basis of the original framework, the second chip 43 is additionally added, and the writing data corresponding to the touch handwriting is independently processed by the data memory 44. The second chip 43 fuses the independently processed touch handwriting and the initial display data, so that the touch handwriting can be displayed in the current frame image, effectively reducing the writing delay. Specifically, the data memory 44 can read the position information and color information of the pixel points corresponding to the touch handwriting stored in the second chip 43, and write the color information into the storage space corresponding to the position information. When the initial display data received by the second chip 43 meets the preset conditions, it can read the color information at the corresponding position in the data memory, and determine the color information of the pixel points corresponding to the target display data in combination with the color information of the pixel points corresponding to the received initial display data, and then output the color information of each pixel point of the target display data to the touch screen 41 for display.

[0085] Specifically, referring to Figure 5 , the second chip 43 includes a first buffer module 431, a second buffer module 432 and a processing module 433. Among them, the first buffer module 431 can be a FIFO (First Input First Output) memory, and the second buffer module 432 can be a RAM (Random Access Memory). The first buffer module 431 is used to receive and store the position information and color information of the pixel points corresponding to the touch handwriting, and write the color information into the storage space corresponding to the position information in the data memory 44; the second buffer module 432 is used to receive and store the initial display data of the touch screen 41; the processing module 433 is used to read the first color information of the initial display data cached in the second buffer module 432 and the second color information stored at the corresponding position in the data memory 44 when the initial display data sent by the first chip 42 meets the preset conditions; determine the color information of each pixel point in the target display data according to the first color information and the second color information, and output it to the touch screen 41 for display.

[0086] The electronic device provided by the embodiment of the present invention can execute the writing method based on the touch screen provided by the above embodiment, and has the corresponding functions and beneficial effects. For specific details, reference can be made to the above embodiment, which will not be elaborated here.

[0087] Embodiment Five

[0088] Embodiment Five of the present invention provides a storage medium containing computer-executable instructions, on which a computer program is stored. When the program is executed by the corresponding chip, it is used to execute a writing method based on a touch screen. The method includes:

[0089] Receive the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, and write the color information into the storage space corresponding to the position information in the data memory;

[0090] When the initial display data of the touch screen sent by the first chip meets the preset conditions, determine the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory;

[0091] Output the color information of each pixel point of the target display data to the touch screen for display.

[0092] The storage medium of the embodiments of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may, for example, include but not be limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0093] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal may take various forms, including but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0094] The program code contained on the computer-readable medium may be transmitted by any suitable medium, including but not limited to: wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.

[0095] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0096] Note that the above is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope 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. Without departing from the concept of the present invention, more other equivalent embodiments may be included, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A writing method based on a touch screen, characterized in that, including: The second chip receives the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen; writing the color information into the storage space corresponding to the position information in the data memory; when receiving that the initial display data of the touch screen sent by the first chip meets a preset condition, determining the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory; wherein, the preset condition is used to indicate that the second chip can fuse the initial display data and the writing data corresponding to the touch note; outputting the color information of each pixel point of the target display data to the touch screen for display.

2. The method according to claim 1, characterized in that Receiving that the initial display data of the touch screen sent by the first chip meets a preset condition includes: when the received initial display data is the initial display data of the next line of the touch screen, determining that the received initial display data meets the preset condition.

3. The method according to claim 2, wherein The determining the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory includes: reading the first color information of the initial display data of the previous line of the touch screen sent by the first chip and the second color information of the pixel points at the same position as the previous line of the initial display data in the data memory; if the second color information is the same as the initial color of the pixel points at the same position in the data memory, using the first color information as the color information of each pixel point in the target display data; otherwise, determining the color information of each pixel point in the target display data according to the first color information and the second color information.

4. The method according to claim 3, characterized in that, The determining the color information of each pixel point in the target display data according to the first color information and the second color information includes: replacing the first color information with the second color information, and using the replaced first color information as the color information of each pixel point in the target display data.

5. The method according to claim 3, characterized in that, The determining the color information of each pixel point in the target display data according to the first color information and the second color information includes: determining a first weight corresponding to the first color information and a second weight corresponding to the second color information; accumulating the first weighted result of the first weight and the first color information and the second weighted result of the second weight and the second color information to obtain the color information of each pixel point in the target display data.

6. The method according to any one of claims 1-5, characterized in that, Before outputting the color information of each pixel point of the target display data to the touch screen for display, it further includes: determining a backlight driving signal according to the color information of each pixel point in the target display data; driving the backlight of the touch screen according to the backlight driving signal, so that the backlight displays the color information of each pixel point in the target display data.

7. A touch screen-based writing device, characterized in that, including: a receiving module, configured to receive, by the second chip, the initial display data of the touch screen determined and sent by the first chip, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen; The receiving module is further configured to write the color information into a storage space corresponding to the position information in the data memory; The color information determining module is configured to, when the initial display data of the touch screen sent by the first chip satisfies a preset condition, determine the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory; wherein, the preset condition is used to indicate that the second chip can fuse the initial display data and the writing data corresponding to the touch note; The output module is configured to output the color information of each pixel point of the target display data to the touch screen for display.

8. An electronic device, including a touch screen, characterized in that, It further includes a first chip, a second chip, and a data memory; the first chip is respectively connected to the touch screen and the second chip, and the second chip is further respectively connected to the data memory and the touch screen; The first chip is configured to determine and send the initial display data of the touch screen, as well as the position information and color information of the pixel points corresponding to the current touch handwriting in the touch screen, to the second chip, and write the color information into a storage space corresponding to the position information in the data memory; The data memory is configured to read the position information and color information of the pixel points corresponding to the touch handwriting in the second chip; The second chip is configured to, when the initial display data of the touch screen sent by the first chip satisfies a preset condition, determine the color information of each pixel point in the target display data according to the color information of the initial display data and the color information at the corresponding position in the data memory, and output the color information of each pixel point of the target display data to the touch screen for display; wherein, the preset condition is used to indicate that the second chip can fuse the initial display data and the writing data corresponding to the touch note.

9. The device according to claim 8, characterized in that, The second chip includes a first buffer module, a second buffer module, and a processing module; The first buffer module is configured to receive and store the position information and color information of the pixel points corresponding to the touch handwriting, and write the color information into a storage space corresponding to the position information in the data memory; The second buffer module is configured to receive and store the initial display data of the touch screen; The processing module is configured to, when the initial display data sent by the first chip satisfies a preset condition, read the first color information of the initial display data cached in the second buffer module and the second color information stored at the corresponding position in the data memory; determine the color information of each pixel point in the target display data according to the first color information and the second color information, and output it to the touch screen for display.

10. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by the corresponding chip, are used to execute the touch screen-based writing method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Handwriting fluorescence blackboard for electronic touch pen

    CN102446014A

  • Multi-layer writing display method, device and system

    CN103034332A