Touch display data downloading method and device, electronic equipment and storage medium
By using the display bus to download and divert data in electronic devices, the problem of long download time of touch data in the prior art is solved, and more efficient data transmission and better user experience are achieved.
Patent Information
- Application Number
- CN202411041172.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, the time for downloading touch program data through the touch bus is long, resulting in low data transmission efficiency and operation delay, affecting the user experience.
The target data sent by the host is downloaded through the display bus and diverted it, sending the touch data and display data to the touch module and the display module respectively to improve transmission efficiency.
It significantly shortens download time, reduces operation delay, improves user experience, and does not require additional interfaces, avoiding additional implementation costs.
Smart Images

Figure CN119105993A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch display technology, and in particular to a method, device, electronic device and storage medium for downloading touch display data. Background Art
[0002] In electronic devices, the communication bus of the touch display module is generally divided into a display bus and a touch bus, which communicate with the display module and the touch module respectively. Among them, the commonly used display buses are: QSPI, MIPI, and the speed is usually 50M to 200M, and the commonly used touch buses are: SPI, IIC, and the speed is usually below 2M, especially the IIC interface is usually below 400k.
[0003] The applicant found in the specific use process that the touch program data of the touch display module needs to be downloaded from the host to the touch display module. In order not to affect the user experience, the overall download time needs to be controlled within 100ms. However, the current common practice is to download touch program data only through the touch bus, and the download time via SPI or IIC bus is at least 200ms, which has poor data transmission efficiency and will cause serious operation delays. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for downloading touch display data, which can download target data sent by the host through a display bus, and send the touch data and display data to the touch module and display module respectively after diversion, which can effectively improve the transmission efficiency of touch data.
[0005] The present application embodiment provides a method for downloading touch display data, comprising:
[0006] Receive data download instructions and determine the current download mode of the touch display module;
[0007] When the download mode is the high-speed mode, the target data sent by the host is downloaded via the display bus;
[0008] Dividing the target data according to the type of the target data;
[0009] The divided touch data and display data are sent to the touch module and the display module respectively through the internal bus.
[0010] In one embodiment, the download mode includes a high-speed mode and a normal mode, and the determining the current download mode of the touch display module includes:
[0011] determining an application currently running on the electronic device;
[0012] The current download mode is determined based on the application.
[0013] In one embodiment, determining the current download mode of the touch display module includes:
[0014] Determine the current screen sampling rate of the electronic device;
[0015] The current download mode is determined according to the screen sampling rate.
[0016] In one embodiment, determining the current download mode of the touch display module includes:
[0017] Determine the current usage status of the display bus in the electronic device;
[0018] The current download mode is determined according to the usage status.
[0019] In one embodiment, the method further comprises:
[0020] When the download mode is the normal mode, the display data sent by the host is downloaded through the display bus, and the touch data sent by the host is downloaded through the touch bus.
[0021] In one embodiment, downloading the target data sent by the host through the display bus includes:
[0022] Acquire the number of channels of the display bus and the data volume of the target data;
[0023] The target data is split according to the data volume and the number of channels, and the split data are downloaded respectively through multiple channels.
[0024] In one embodiment, after sending the split touch data from the internal bus to the touch module, the method further includes:
[0025] Performing denoising and calibration processing on the diverted touch data;
[0026] The touch parameters are identified according to the processed touch data.
[0027] The embodiment of the present application also provides a device for downloading touch display data, including:
[0028] A receiving module, used to receive a data download instruction and determine the current download mode of the touch display module;
[0029] A download module, used for downloading target data sent by the host through the display bus when the download mode is the high-speed mode;
[0030] A distribution module, used for distributing the target data according to the type of the target data;
[0031] The sending module is used to send the divided touch data and display data to the touch module and the display module respectively through the internal bus.
[0032] An embodiment of the present application also provides an electronic device, characterized in that the electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the steps in any one of the touch display data downloading methods provided in the embodiments of the present application by calling the computer program stored in the memory.
[0033] An embodiment of the present application further provides a storage medium, characterized in that the storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in any one of the touch display data downloading methods provided in the embodiments of the present application.
[0034] The touch display data downloading method provided in the embodiment of the present application can receive a data download instruction and determine the current download mode of the touch display module. When the download mode is the high-speed mode, the target data sent by the host is downloaded through the display bus, the target data is shunted according to the type of the target data, and the shunted touch data and display data are sent to the touch module and the display module respectively through the internal bus. The embodiment of the present application can download the target data sent by the host through the display bus, and send the touch data and display data to the touch module and the display module respectively after shunting, which can effectively improve the transmission efficiency of the touch data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 This is a first flow chart of a method for downloading touch display data provided in an embodiment of the present application;
[0037] Figure 2 It is a schematic diagram of the device architecture provided in the embodiment of the present application;
[0038] Figure 3 This is a second flow chart of the method for downloading touch display data provided in an embodiment of the present application;
[0039] Figure 4 It is a structural diagram of a device for downloading touch display data provided in an embodiment of the present application;
[0040] Figure 5It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0042] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0043] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0044] It should be noted that, in this article, step codes such as 101, 102, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute 102 first and then 101, etc., but these should all be within the scope of protection of this application.
[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0046] An embodiment of the present application provides a method for downloading touch display data. The executor of the method for downloading touch display data may be a downloading device for touch display data provided in the embodiment of the present application, or a server integrated with the downloading device for touch display data, wherein the downloading device for touch display data may be implemented in hardware or software.
[0047] like Figure 1 As shown, Figure 1 : is a first flow diagram of a method for downloading touch display data provided in an embodiment of the present application. The specific flow of the method for downloading touch display data may be as follows:
[0048] 101. Receive a data download instruction and determine the current download mode of the touch display module.
[0049] In the embodiment of the present application, the data that the touch display module needs to download may include touch data and display data, wherein the display data may include images, videos, texts, etc., and the touch data may include the coordinates of the touch point, the action type (such as click, slide, zoom, etc.) and the corresponding response time, etc. After receiving the data download instruction sent by the host, it is necessary to determine the current download mode of the touch display module, which may include high-speed mode and normal mode.
[0050] In one embodiment, the high-speed mode refers to a mode in which data can be downloaded through a high-speed interface, and the corresponding normal mode is to download data through other interfaces. In other embodiments, the high-speed mode may also refer to the analog-to-digital converter (ADC) used by the touch display module when collecting touch signals, which has a higher sampling rate and conversion speed, thereby supporting faster touch response and higher data processing capabilities. The normal mode may use a standard or lower sampling rate and conversion speed, which is suitable for general application scenarios, and its data transmission and processing speed is relatively slow.
[0051] When determining the current download mode of the above touch display module, it can be determined according to the usage scenario of the current electronic device, such as selecting the current download mode as high-speed analog-to-digital or normal mode based on the user's usage habits or the touch data response speed requirements in the current scenario.
[0052] 102. When the download mode is the high-speed mode, the target data sent by the host is downloaded through the display bus.
[0053] In the embodiment of the present application, when the download mode is determined to be the high-speed mode, the target data sent by the host can be downloaded through the display bus, and the target data includes display data and touch data. Thus, a faster download speed can be obtained. Correspondingly, when the download mode is the normal mode, the display data sent by the host can be downloaded through the display bus, and the touch data sent by the host can be downloaded through the touch bus.
[0054] Among them, the interface used by the above-mentioned display bus can be QSPI (Quad SPI, 6-wire spi) or MIPI (Mobile Industry Processor Interface, mobile industry processor interface), and the interface used by the touch bus can be: SPI (Serial Peripheral interface, serial peripheral device interface) or IIC (Inter-Integrated Circuit, integrated circuit bus). The speed of downloading data through the above-mentioned QSPI and MIPI interfaces is much higher than that of SPI and IIC interfaces. Therefore, when downloading data through the high-speed mode, the present application will download the target data sent by the host through the display bus as long as the data format of the target data meets the use standard of the display bus interface, thereby obtaining higher download efficiency.
[0055] 103. Divert the target data according to the type of the target data.
[0056] In the embodiment of the present application, a data splitting module is also included between the host end and the display module and the touch module, such as Figure 2 As shown, the data diversion module can be controlled by the touch module or the host end, and can divert the target data according to the type of target data. Specifically, it can be determined whether the currently downloaded target data is touch data. If so, the target data downloaded through the display bus will be transmitted to the touch module. If the currently downloaded target data is not touch data, that is, it is display data, then the target data downloaded through the display bus can be transmitted to the display module.
[0057] In one embodiment, if it is determined that the currently downloaded target data contains both touch data and display data, the target data can be diverted, and the display data therein can be sent to the display module, and the touch data can be sent to the touch module. Among them, when diverting the above-mentioned target data, different processing is required according to the source and format of the data. For example, for touch data, if the data comes from a touch screen device, the touch event can be captured through the device's API or driver. In mobile applications or web applications, the corresponding SDK or JavaScript library can be used to capture the touch event. For display data, for screenshots or videos, image processing software or scripts can be used for analysis, and for UI / UX testing, special tools can be used to capture and record the display data on the screen.
[0058] 104. Send the divided touch data and display data to the touch module and the display module respectively through the internal bus.
[0059] Furthermore, the above-mentioned shunted touch data and display data are sent to the touch module and display module respectively through the internal bus connected to the data shunting module, wherein the touch data may include the touch point position (the X, Y coordinates of each touch point, indicating the position of the touch point on the screen), the number of touch points (the number of fingers or objects touching the screen at the same time), the touch point attributes (such as the size, pressure, type of contact point, etc.), the timestamp (the time when the touch point contacts and leaves the screen), etc. The display data may include image data (the pixel values displayed on the screen, which define the color and brightness of each pixel), text data (the text content displayed on the screen, including font, size, color and other attributes), layout information (the layout of screen elements, such as the position and size of buttons, icons, text boxes, etc.), animation and transition effects (such as dynamic changes on the screen, such as sliding, fading in and out effects), etc.
[0060] In actual applications, if the data is downloaded via the SPI or IIC interface corresponding to the conventional touch bus, the download time T 下载 The calculation formula is as follows:
[0061] T 下载 =(8×Data) / (Line×S×Avai)
[0062] Among them, Data is the amount of data, Line is the number of lines, S is the download speed, and Avai is the download utilization rate of the device. The time calculation result of IIC interface downloading data is as follows:
[0063]
[0064] The time calculation results of SPI interface downloading data are as follows:
[0065]
[0066] According to the above formula, the download time is at least 200ms, which will cause serious operation delays and affect the user experience. When downloading target data through the touch display data download method provided in this application, the data is downloaded through the display bus. According to the QSPI minimum speed of 10M, the total download time is:
[0067]
[0068] After calculation, the download time is reduced to about 10ms, while in the traditional solution, if the IIC interface is used, the download time takes about 1 second. Therefore, compared with the traditional solution, the embodiment of the present application greatly shortens the download time and reduces the operation delay. In addition, the solution in this embodiment does not need to add an additional interface, and can directly use the current interface without additional implementation cost.
[0069] As described above, the touch display data downloading method proposed in the embodiment of the present application can receive a data download instruction and determine the current download mode of the touch display module. When the download mode is the high-speed mode, the target data sent by the host is downloaded through the display bus, and the target data is shunted according to the type of the target data, and the shunted touch data and display data are sent to the touch module and the display module respectively through the internal bus. The embodiment of the present application can download the target data sent by the host through the display bus, and send the touch data and display data to the touch module and the display module respectively after shunting, which can effectively improve the transmission efficiency of the touch data.
[0070] See also Figure 3 , Figure 3 This is a second flow chart of the method for downloading touch display data provided in an embodiment of the present application. The method comprises:
[0071] 201. Receive a data download instruction, and determine a current download mode of the touch display module according to a usage scenario of the electronic device.
[0072] In the embodiment of the present application, the data that the touch display module needs to download may include touch data and display data. After receiving the data download instruction sent by the host, it is necessary to determine the current download mode of the touch display module, which may include a high-speed mode and a normal mode. Specifically, it can be determined according to the usage scenario of the current electronic device.
[0073] In one embodiment, the usage scenario of the electronic device may include currently running applications. Specifically, the application currently running on the electronic device may be determined, and then the current download mode may be determined based on the application. For example, if the current application is an application that requires the user to touch the screen frequently, the download mode of the touch display module may be set to high-speed mode. If the current application does not require the user to touch the screen too much, it may be set to normal download mode.
[0074] In one embodiment, the usage scenario of the electronic device may also include the current screen sampling rate of the electronic device. Specifically, the current screen sampling rate of the electronic device may be obtained first, and then the current download mode may be determined according to the screen sampling rate. For example, the screen sampling rate of the electronic device may include two gears, 120Hz sampling rate and 240Hz sampling rate, for users to adjust independently. When the 120Hz sampling rate is used, the download mode of the touch display module may be set to the normal mode, and when the 240Hz sampling rate is used, the download mode of the touch display module may be set to the high-speed mode, so as to respond to user operations more quickly.
[0075] In one embodiment, the usage scenario of the above-mentioned electronic device may also include the current usage status of the display bus in the electronic device. Specifically, the current usage status of the display bus in the electronic device may be first obtained, and then the current download mode may be determined according to the usage status. For example, when the current bandwidth occupancy of the display bus is less than 50%, the download mode of the touch display module may be set to high-speed mode to download the display data and touch data sent by the host through the display bus. When the current bandwidth occupancy of the display bus is higher than 50%, the download mode of the touch display module is set to normal mode. At this time, the display data sent by the host may be downloaded through the display bus, and the touch data sent by the host may be downloaded through the touch bus.
[0076] 202. When the download mode is the high-speed mode, the number of channels of the display bus and the data volume of the target data are obtained.
[0077] 203. Split the target data according to the data volume and the number of channels, and download the split data respectively through multiple channels.
[0078] In an embodiment of the present application, when it is determined that the above-mentioned download mode is a high-speed mode, the target data sent by the host can be downloaded through the display bus, and the target data includes display data and touch data. Thereby, a faster download speed is obtained. At this time, the number of channels of the display bus and the data volume of the target data can be further obtained, and then the target data can be split according to the data volume and the number of channels, and the split data can be downloaded separately through multiple channels. By downloading data in parallel through multiple channels, the download efficiency is further improved.
[0079] 204. Divert the target data according to the type of the target data.
[0080] 205 . Send the divided touch data and display data to the touch module and the display module respectively through the internal bus.
[0081] Specifically, the split touch data and display data are respectively sent to the touch module and the display module through an internal bus connected to the data split module.
[0082] 206. Perform denoising and calibration processing on the diverted touch data.
[0083] 207 : Identify touch parameters according to the processed touch data.
[0084] In one embodiment, the display data after shunting can be directly displayed through the display module, for example, it can include image data, text data, layout information, animation and transition effects and other information. The touch data can include information such as the contact position, the number of contacts, the contact attributes, and the timestamp. Before the touch data is processed, the present embodiment can also perform denoising and calibration processing on the shunted touch data. Specifically, the following steps can be performed when denoising the touch data: 1. LCD Filter. For the capacitance interference generated during LCD scanning, the collected capacitance value can be offset and pulled down by software processing, and the difference value can be subtracted from the reference value to obtain the difference value, and then the average value is calculated to weaken the influence of LCD. 2. Low-pass filtering (LPF). The use of low-pass filtering algorithm can reduce the peak mutation of capacitance value caused by random strong noise, thereby avoiding problems such as line breakage or point jump. The formula is: Y(n)=a*X(n)+(1-a)*Y(n-1), where Y(n) is the processed capacitance value, X(n) is the currently collected capacitance value, and a is a percentage factor used to adjust the filtering effect. 3. Gaussian filtering uses the properties of the Gaussian function to smooth the data, but it may reduce touch sensitivity.
[0085] Furthermore, the touch data can be calibrated by setting appropriate thresholds for the touch panel, such as finger thresholds, noise thresholds, etc., to distinguish between valid touch and noise signals. Alternatively, the resolution, scanning speed and other parameters of the touch panel can be adjusted to achieve a balance between the signal-to-noise ratio and the scanning time, thereby improving the accuracy of the touch data. The touch parameters can also be automatically adjusted through built-in algorithms and sensors to adapt to different usage environments and user habits. This embodiment does not further limit this.
[0086] Then, after denoising and calibration, the touch data can be processed by pattern recognition algorithms (such as machine learning algorithms) to identify different touch action patterns. For touch panels that support multi-touch, gesture recognition algorithms can also be used to identify complex gesture operations, such as pinch-to-zoom and rotation. After the touch action is identified, the operation results can be fed back to the user through screen display, sound prompts, etc., to improve the user experience.
[0087] As described above, the touch display data downloading method proposed in the embodiment of the present application can receive a data download instruction, and determine the current download mode of the touch display module according to the use scenario of the electronic device. When the download mode is the high-speed mode, the number of channels of the display bus and the data volume of the target data are obtained, the target data is split according to the data volume and the number of channels, and the split data are downloaded separately through multiple channels, the target data is shunted according to the type of the target data, and the shunted touch data and display data are sent to the touch module and the display module respectively from the internal bus, the shunted touch data is denoised and calibrated, and the touch parameters therein are identified according to the processed touch data. The embodiment of the present application can download the target data sent by the host through the display bus, and send the touch data and display data to the touch module and the display module respectively after shunting, which can effectively improve the transmission efficiency of the touch data.
[0088] In order to implement the above method, the embodiment of the present application further provides a device for downloading touch display data, and the device for downloading touch display data can be specifically integrated in a terminal device such as a mobile phone, a tablet computer, and the like.
[0089] For example, Figure 4 FIG. 1 is a schematic diagram of a first structure of a device for downloading touch display data provided in an embodiment of the present application. The device for downloading touch display data may include:
[0090] The receiving module 301 is used to receive a data download instruction and determine the current download mode of the touch display module;
[0091] A download module 302, used for downloading target data sent by the host through a display bus when the download mode is a high-speed mode;
[0092] A distribution module 303, used to distribute the target data according to the type of the target data;
[0093] The sending module 304 is used to send the divided touch data and display data to the touch module and the display module respectively via the internal bus.
[0094] As can be seen from the above, the touch display data downloading device proposed in the embodiment of the present application can receive a data download instruction and determine the current download mode of the touch display module. When the download mode is the high-speed mode, the target data sent by the host is downloaded through the display bus, and the target data is shunted according to the type of the target data, and the shunted touch data and display data are sent to the touch module and the display module respectively through the internal bus. The embodiment of the present application can download the target data sent by the host through the display bus, and send the touch data and display data to the touch module and the display module respectively after shunting, which can effectively improve the transmission efficiency of the touch data.
[0095] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.
[0096] Accordingly, the embodiment of the present application also provides an electronic device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 5 As shown, Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0097] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400, executes various functions of the electronic device 400 and processes data by running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, thereby monitoring the electronic device 400 as a whole.
[0098] In the embodiment of the present application, the processor 401 in the electronic device 400 will load instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 will run the application programs stored in the memory 402 to implement various functions:
[0099] Receive data download instructions and determine the current download mode of the touch display module;
[0100] When the download mode is the high-speed mode, the target data sent by the host is downloaded via the display bus;
[0101] Dividing the target data according to the type of the target data;
[0102] The divided touch data and display data are sent to the touch module and the display module respectively through the internal bus.
[0103] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0104] Optional, such as Figure 5 As shown, the electronic device 400 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art can understand that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0105] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to realize the input function.
[0106] In the embodiment of the present application, the processor 401 executes the application program to generate a graphical user interface on the touch screen 403. The touch screen 403 is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface.
[0107] The radio frequency circuit 404 can be used to send and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to send and receive signals between network devices or other electronic devices. Generally, the radio frequency circuit 404 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0108] The audio circuit 405 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and then the audio data is output to the processor 401 for processing, and then sent to another electronic device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0109] The input unit 406 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0110] The power supply 407 is used to supply power to various components of the electronic device 400. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0111] although Figure 5 Not shown, the electronic device 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0112] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0113] As can be seen from the above, the electronic device provided by this embodiment receives a data download instruction and determines the current download mode of the touch display module. When the download mode is the high-speed mode, the target data sent by the host is downloaded through the display bus, the target data is shunted according to the type of the target data, and the shunted touch data and display data are sent to the touch module and the display module respectively through the internal bus. The embodiment of the present application can download the target data sent by the host through the display bus, and send the touch data and display data to the touch module and the display module respectively after shunting, which can effectively improve the transmission efficiency of the touch data.
[0114] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0115] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any of the touch display data downloading methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0116] Receive data download instructions and determine the current download mode of the touch display module;
[0117] When the download mode is the high-speed mode, the target data sent by the host is downloaded via the display bus;
[0118] Dividing the target data according to the type of the target data;
[0119] The divided touch data and display data are sent to the touch module and the display module respectively through the internal bus.
[0120] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0121] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0122] Since the computer program stored in the storage medium can execute the steps in any touch display data downloading method provided in the embodiments of the present application, the beneficial effects that can be achieved by any touch display data downloading method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0123] The above is a detailed introduction to a touch display data downloading method, device, electronic device and storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for downloading touch display data, characterized in that: include: Receive data download instructions and determine the current download mode of the touch display module; When the download mode is the high-speed mode, the target data sent by the host is downloaded via the display bus; Dividing the target data according to the type of the target data; The divided touch data and display data are sent to the touch module and the display module respectively through the internal bus.
2. The method for downloading touch display data according to claim 1, characterized in that: The download mode includes a high-speed mode and a normal mode, and the determining the current download mode of the touch display module includes: determining an application currently running on the electronic device; The current download mode is determined based on the application.
3. The method for downloading touch display data according to claim 1, characterized in that: The step of determining the current download mode of the touch display module includes: Determine the current screen sampling rate of the electronic device; The current download mode is determined according to the screen sampling rate.
4. The method for downloading touch display data according to claim 1, wherein: The step of determining the current download mode of the touch display module includes: Determine the current usage status of the display bus in the electronic device; The current download mode is determined according to the usage status.
5. The method for downloading touch display data according to claim 1, characterized in that: The method further comprises: When the download mode is the normal mode, the display data sent by the host is downloaded through the display bus, and the touch data sent by the host is downloaded through the touch bus.
6. The method for downloading touch display data according to claim 1, wherein: The downloading of target data sent by the host through the display bus includes: Acquire the number of channels of the display bus and the data volume of the target data; The target data is split according to the data volume and the number of channels, and the split data are downloaded respectively through multiple channels.
7. The method for downloading touch display data according to claim 1, characterized in that: After sending the divided touch data from the internal bus to the touch module, the method further includes: Performing denoising and calibration processing on the diverted touch data; The touch parameters are identified according to the processed touch data.
8. A device for downloading touch display data, characterized in that: include: A receiving module, used to receive a data download instruction and determine the current download mode of the touch display module; A download module, used for downloading target data sent by the host through the display bus when the download mode is the high-speed mode; A distribution module, used for distributing the target data according to the type of the target data; The sending module is used to send the divided touch data and display data to the touch module and the display module respectively through the internal bus.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the steps in the touch display data downloading method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in the method for downloading touch display data according to any one of claims 1 to 7.
