WO2017202314A1 - 数据处理方法及装置 - Google Patents

数据处理方法及装置 Download PDF

Info

Publication number
WO2017202314A1
WO2017202314A1 PCT/CN2017/085580 CN2017085580W WO2017202314A1 WO 2017202314 A1 WO2017202314 A1 WO 2017202314A1 CN 2017085580 W CN2017085580 W CN 2017085580W WO 2017202314 A1 WO2017202314 A1 WO 2017202314A1
Authority
WO
WIPO (PCT)
Prior art keywords
report data
report
microprocessor
data
synchronization signal
Prior art date
Application number
PCT/CN2017/085580
Other languages
English (en)
French (fr)
Inventor
钟光华
赵京
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US16/304,563 priority Critical patent/US10678376B2/en
Priority to EP17802160.6A priority patent/EP3454185A4/en
Publication of WO2017202314A1 publication Critical patent/WO2017202314A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04166Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04184Synchronisation with the driving of the display or the backlighting unit to avoid interferences generated internally
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/12Synchronisation between the display unit and other units, e.g. other display units, video-disc players

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data processing method and apparatus.
  • the response time of the capacitive touch screen is about 100 ms
  • the user desires the operation to be like a realistic drag feeling, that is, the user desires that the display image of the display interface of the mobile terminal can be Real-time change display as the user's touch operation.
  • the application processor when the touch screen sends the report data to the application processor of the mobile terminal for data processing, the application processor usually adopts an interrupt mode, and due to the limited number of interrupts, usually a plurality of general-purpose input and output GPIOs share an interrupt. Therefore, the report data of the touch screen is likely to be locked by other interrupts, or waiting to be processed in the work queue WQ corresponding to an interrupt, and therefore, there is a problem that the processing of the report data has a delayed response.
  • the reporting rate of the report data is not a multiple relationship with the display rate of the display, each of the reporting points and the frame of the display cannot be completely synchronized, and the delay of each point is different, thereby causing dragging when the image is displayed. Uniform problem.
  • the embodiment of the invention provides a data processing method and device, which solves the problem that the response speed is slow and the drag is uneven when the terminal processes the report point data in the prior art.
  • the first aspect provides a data processing method, where the method is applied to a terminal, where the terminal is provided with a touch screen, a microprocessor, and an application processor, and the method includes: generating, by the touch screen, the report data, and reporting the rate according to the preset report point.
  • the report data includes contact information when the touch screen is touched; the microprocessor receives the report data; and the microprocessor receives the frame synchronization signal sent by the application processor, and the frame synchronization signal a periodic signal synchronized with the display frame rate; the microprocessor processes the first number of report data received within the preset time according to the frame synchronization signal to obtain a second quantity of report data, and the second number of reports
  • the point data is transmitted to the application processor, the second quantity being less than the first quantity; the application processor receiving the second number of report point data and generating a display image frame according to the second quantity of the report point data.
  • a data processing apparatus comprising: a detecting unit, configured to generate report data, and report the report data to a first processing unit according to a preset report reporting rate, where the report data includes detection a contact information when the unit is touched; a first processing unit, configured to receive the report data; the first processing unit is further configured to receive a frame synchronization signal sent by the second processing unit, and the frame synchronization signal is synchronized with the display frame rate The first processing unit is further configured to process, according to the frame synchronization signal, the first quantity of the report data received in the preset time to obtain a second quantity of the report data, and the second number of the report points The data is transmitted to the second processing unit, the second quantity is less than the first quantity; the second processing unit is configured to receive the second quantity of the report data, and generate a display image frame according to the second quantity of the report data.
  • a terminal in a third aspect, includes: a touch screen, a microprocessor, and an application processor; wherein the touch screen is configured to generate report data, and report the report data to the microprocessor according to a preset report reporting rate
  • the report data includes contact information when the touch screen is touched; the microprocessor is configured to receive the report data; and the microprocessor is further configured to receive a frame synchronization signal sent by the application processor, and the frame synchronization signal is Displaying a periodic signal of the frame rate synchronization; the microprocessor is further configured to process, according to the frame synchronization signal, the first quantity of the report data received within the preset time to obtain a second quantity of the report data, and the second quantity
  • the report data is transmitted to the application processor, the second quantity is less than the first quantity; the application processor is configured to receive the second quantity of the report data, and generate a display image frame according to the second quantity of the report data.
  • the first number of report data is processed according to the frame synchronization signal, and the plurality of report data included in the first number of report data is processed in a parallel processing manner, instead of being processed by interruption. Therefore, the problem of interrupt delay and work queue delay in the processing of the report data is avoided, and the problem of uneven display dragging of the display image is also solved.
  • the microprocessor processes the first quantity of the report data received in the preset time according to the frame synchronization signal to obtain the second quantity of the second report data, including:
  • the microprocessor samples the first quantity of the report data received within the preset time according to the frame synchronization signal to obtain a second quantity of the report data.
  • the first processing unit is configured to: sample the first quantity of the report data received in the preset time according to the frame synchronization signal, to obtain the second quantity of the report data.
  • the microprocessor is configured to: sample the first quantity of the report data received in the preset time according to the frame synchronization signal, to obtain the second quantity of the report data.
  • the first quantity of the report data received in the preset time is sampled by the frame synchronization signal, so that each period of the frame synchronization signal corresponds to one of the second number of report data.
  • the sampling point ensures the synchronization of the report data and the display.
  • the method further includes: the microprocessor determining the first quantity of the report data. Whether the accuracy is smaller than the target sampling precision; if it is determined that the accuracy of the first number of reporting data is less than the target sampling precision, the microprocessor interpolates the first number of reporting data to obtain a third number of reporting data, and third The quantity is greater than the first quantity; correspondingly, the microprocessor samples the first quantity of the report data received in the preset time according to the frame synchronization signal to obtain the second quantity of the report data, including: the microprocessor synchronizes according to the frame The signal samples the third quantity of the report data after the interpolation process to obtain a second quantity of the report data.
  • the first processing unit is further configured to: determine whether the accuracy of the first quantity of the report data is less than the target sampling accuracy; if it is determined that the accuracy of the first quantity of the report data is less than the target sampling accuracy, The first quantity of the report data is interpolated to obtain a third quantity of the report data, and the third quantity is greater than the first quantity; correspondingly, the first processing unit is specifically configured to: perform the third process after the interpolation process according to the frame synchronization signal The number of report data is sampled to obtain a second amount of report data.
  • the microprocessor is further configured to: determine whether the accuracy of the first quantity of the report data is less than the target sampling accuracy; and if determining that the accuracy of the first quantity of the report data is less than the target sampling accuracy, A quantity of the report data is interpolated to obtain a third quantity of the report data, and the third quantity is greater than the first quantity; correspondingly, the microprocessor is specifically configured to: perform the third quantity after the interpolation process according to the frame synchronization signal The report data is sampled to obtain a second amount of report data.
  • the microprocessor needs to report the report first.
  • the point data is subjected to interpolation processing, and then the processed report point data is sampled according to the frame synchronization signal.
  • the method further includes: determining, by the microprocessor, the user action corresponding to the second quantity of the report data, and transmitting the determination result to The application processor, the user action includes a touch action or a slide action.
  • the first processing unit is further configured to: determine a user action corresponding to the second number of the report data, and transmit the determination result to the second processing unit, where the user action includes a touch action or a sliding action .
  • the microprocessor is further configured to: determine a user action corresponding to the second number of the report data, and transmit the determination result to the application processor, where the user action includes a touch action or a sliding action.
  • the microprocessor determines the user action corresponding to the second quantity of the report data, and transmits the determination result to the application processor, thereby improving the application processor to generate the second quantity of the report data according to the second quantity of the report data. Displays the rate of the image frame.
  • the touch screen generates the report data, and before reporting the report data to the microprocessor according to the preset report reporting rate, the method further includes: the touch screen receiving the display frame rate sent by the application processor; the touch screen The preset report reporting rate is determined according to the display frame rate.
  • the detecting unit is further configured to: receive a display frame rate sent by the second processing unit; and determine a preset report reporting rate according to the display frame rate.
  • the touch screen is further configured to: receive a display frame rate sent by the application processor; and determine a preset report reporting rate according to the display frame rate.
  • the preset report reporting rate can be consistent with the display frame rate during image display, so that each reported report data will be It is displayed in the displayed image, so that compared with the prior art, the touch screen transmits the report data according to the fixed frequency, the waste of generating the display image due to the transmission of the report data by the fixed frequency is avoided, and the power consumption of the terminal is also reduced.
  • the application processor stops transmitting the frame synchronization signal to the microprocessor.
  • the second processing unit is further configured to stop sending the frame synchronization signal to the first processing unit when the detecting unit does not detect the touch operation within the preset time period.
  • the application processor is further configured to stop sending the frame synchronization signal to the microprocessor when the touch screen does not detect the touch operation within the preset time period.
  • the frame synchronization signal when the touch operation is not detected, the frame synchronization signal may be stopped, and the power consumption of transmitting the frame synchronization signal to the terminal may be reduced.
  • the method before the microprocessor transmits the second quantity of the report data to the application processor, the method further includes: performing a low-pass filtering process on the second quantity of the report data by the microprocessor.
  • the first processing unit is further configured to: perform low-pass filtering processing on the second quantity of the report data.
  • the microprocessor is further configured to: perform low-pass filtering processing on the second quantity of the report data.
  • the low-pass filtering process is performed on the sampled second quantity of the report data, so that the noise in the second quantity of the report data can be filtered out, thereby improving the signal-to-noise ratio of the data, thereby improving the generation. Displays the sharpness of the image frame.
  • 1 is a schematic structural view of a terminal
  • FIG. 3 is a schematic flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a frame synchronization signal according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of sampling a report point data according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of another data processing method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart diagram of still another data processing method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of signaling interaction of a data processing method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic flowchart of an ASRC according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic timing diagram of a data processing method according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
  • the data processing method provided by the embodiment of the present invention may be executed by a terminal, which may be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant, personal digital). Assistant) and so on.
  • a terminal which may be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant, personal digital). Assistant) and so on.
  • a terminal which may be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant, personal digital). Assistant) and so on.
  • 1 is a block diagram showing a portion of a structure of a terminal associated with various embodiments of the present invention.
  • the terminal 10 includes an application processor 101, a microprocessor 102, and a touch
  • the application processor 101 and the microprocessor 102 are control centers of the terminal, and connect various parts of the entire terminal by using various interfaces and lines, and have data processing functions.
  • the application processor 101 mainly processes an operating system, a user interface, and an application.
  • the microprocessor 102 can execute a portion of the instructions in place of the application processor 101 or have some of the functions of the application processor 101.
  • communication between the application processor 101 and the microprocessor 102 is also possible, that is, data transmission can be performed between the application processor 101 and the microprocessor 102, and the data transmission can be bidirectional transmission.
  • the application processor 101 and the microprocessor 102 can be integrated into the processor or can be set separately.
  • the microprocessor can be a processing chip with low power consumption.
  • the microprocessor can be a MCU with a software programming function, a digital signal processing chip DSP, a sensor center SensorHub, or a programmable logic device, etc.
  • the processor is cheap and consumes less power.
  • the microprocessor can be a microprocessor MSP430 developed by Texas Instruments, USA. LPC18A1, or STM32L151RB developed by NXP Semiconductors.
  • the touch screen 103 can be divided into a touch screen sensor and a touch screen controller for detecting contact information when the user touches the touch screen.
  • the user action when the user touches the touch screen can be a touch action or a sliding action.
  • the touch screen sensor After receiving the contact information, the touch screen sensor sends the corresponding command to the touch screen controller.
  • the main function of the touch screen controller is to receive the contact information from the touch screen sensor and convert it into contact coordinates, and then send the processing to the terminal.
  • the processor includes an application processor 101 and a microprocessor 102 that simultaneously receive and execute commands from the processor of the terminal.
  • the terminal may further include a memory 104, a sensor component 105, a power component 106, an input/output interface 107, and the like.
  • the memory 104 can be used to store data, software programs, and modules; and mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function, and the like; the storage data area can be stored according to The data created by the use of the terminal, etc.
  • memory 104 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Sensor assembly 105 includes one or more sensors for providing status assessment of various aspects to the terminal.
  • the sensor component 105 may include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor or a temperature sensor, etc., through the sensor component, the acceleration/deceleration, orientation, opening/closing state of the terminal, relative positioning of the component, or terminal may be detected. Temperature changes, etc.
  • the sensor assembly can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the power component 106 is used to provide power to various components of the terminal, and the power component 106 can include a power management system, one or more power sources, and other components associated with the terminal generating, managing, and distributing power.
  • the input/output interface 107 provides an interface between the processor and the peripheral interface module.
  • the peripheral interface module can be a keyboard, a mouse, or the like.
  • the terminal may further include an audio component, a multimedia component, a communication component, and the like.
  • the audio component includes a microphone
  • the multimedia component includes a camera
  • the communication component includes a WiFi (wireless fidelity) module, a Bluetooth module, and the like.
  • WiFi wireless fidelity
  • FIG. 1 and FIG. 2 are only schematic, and do not limit the structure of the terminal.
  • the terminal may also include more or less components than those shown in Figures 1, 2, or have a different configuration than that shown in Figures 1 and 2.
  • FIG. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present invention. Referring to FIG. 3, the method is applied to the terminal shown in FIG. 1 or FIG. 2, and the method includes the following steps.
  • Step 201 The touch screen generates the report point data, and reports the report point data to the microprocessor according to the preset report point reporting rate, where the report point data includes contact information when the touch screen is touched.
  • the touch screen may include a touch screen sensor for detecting a touch operation, and transmitting touch information corresponding to the touch operation to the touch screen controller, and converting the touch information when the touch screen controller receives the touch information.
  • the report data is corresponding to the report data, and the report data is reported to the microprocessor according to the preset report rate.
  • the contact information when the touch screen included in the report data is touched may be contact coordinates.
  • the user action detected by the touch screen sensor may be a touch operation, such as a click, a double click, a long press, or the like, or a sliding operation, such as sliding up and down, sliding left and right, and the like.
  • the preset report reporting rate refers to the frequency at which the touch screen reports the point data to the microprocessor at the preset reporting point.
  • the reporting rate of the preset reporting point can be set in advance, and the reporting point can be reported on the touch screen. Data The previous embodiment of the present invention does not limit this.
  • the user when the user uses the sliding operation as a game button on the touch screen, the user can trigger different control commands by sliding up and down, left and right sliding, and the like, and when the touch screen detects the touch operation, the touch screen can generate and Touching the corresponding report point data, and reporting the report point data to the microprocessor according to the preset report report rate, wherein the report point data includes contact information corresponding to the sliding operation of the user.
  • Step 202 The microprocessor receives the report point data, where the report point data includes contact information when the touch screen is touched.
  • the report data in step 202 is consistent with the report data in step 201, and details are not described herein again.
  • Step 203 The microprocessor receives a frame synchronization signal sent by the application processor, and the frame synchronization signal is a periodic signal synchronized with the display frame rate.
  • the display frame rate is a measure for measuring the number of display frames , that is, the number of frames displayed per second.
  • the frame synchronization signal is a periodic signal synchronized with the display frame rate, which means that the frame synchronization signal is a periodic signal, and the value of the period is related to the display frame rate, and the start time of the frame synchronization signal is related to the start time of the frame display. For example, if the display frame rate is 60 frames per second, and the duration of one frame is about 16 ms, the period of the frame synchronization signal is 16 ms.
  • the state when the application processor performs image display on the time axis t according to the display frame rate is as shown in (I), and the frame synchronization signal may be as shown in (II) or (III).
  • the frame synchronization signal is as shown in (II)
  • the frame synchronization signal is at a high level when there is a frame display, and is a low level when there is no frame display, that is, a state in which the frame synchronization signal changes in a high level and a low level.
  • the frame sync signal is low when there is a frame display, and is high when there is no frame display, that is, The state of the high-low level change of the frame synchronization signal is opposite to the state when the image is displayed according to the display frame rate.
  • the specific form of the frame synchronization signal is not limited herein.
  • the method may further include: the touch screen receiving the display frame rate sent by the application processor, and The preset report reporting rate is determined according to the display frame rate. After the report rate of the preset report is determined, the touch screen can report the generated report data to the microprocessor according to the determined report rate of the preset report.
  • the preset report rate of the touch screen is consistent with the display frame rate of the image display, so that the report data reported by the touch screen is displayed in the displayed image, thereby being fixed with the touch screen in the prior art.
  • the waste of generating a display image due to transmission of the report data at a fixed frequency is avoided, and a part of the power consumption of the terminal is also reduced.
  • Step 204 The microprocessor processes the first quantity of the report data received in the preset time according to the frame synchronization signal to obtain a second quantity of the report data, and transmits the second quantity of the report data to the application processor.
  • the second quantity is less than the first quantity.
  • the microprocessor may perform the first quantity of the report data received within the preset time according to the frame synchronization signal.
  • the processing may be: the microprocessor samples the first quantity of the report data received in the preset time according to the frame synchronization signal to obtain a second quantity of the report data, where the second quantity is less than the first quantity.
  • the microprocessor can transmit the second number of the report data Lose to the application processor.
  • the microprocessor when the microprocessor samples the first number of report data received within the preset time according to the frame synchronization signal, since the frame synchronization signal is a square wave periodic signal, the microprocessor may A sampling point is acquired at a rising edge of a square wave of each period of the frame synchronization signal, thereby obtaining a second number of report data.
  • the first number of report data is A
  • the frame synchronization signal is B
  • the second number of report data is C
  • the preset time may be set in advance, and the preset time may be fixed or changed from time to time, which is not limited by the embodiment of the present invention.
  • the method further includes: the microprocessor determines the first quantity Whether the accuracy of the report data is less than the target sampling accuracy; if it is determined that the accuracy of the first number of report data is less than the target sampling accuracy, the microprocessor interpolates the first number of report data to obtain a third number of reports Point data, the third quantity being greater than the first quantity.
  • the microprocessor samples the first quantity of the report data received in the preset time according to the frame synchronization signal, and obtains the second quantity of the report data, specifically: the microprocessor processes the interpolation according to the frame synchronization signal.
  • the third number of report data is sampled to obtain a second amount of report data.
  • the microprocessor needs to perform interpolation processing on the report data first, and then process the processed signal according to the frame synchronization signal.
  • the report data is sampled.
  • the microprocessor does not need to perform interpolation processing on the report data, and may directly directly measure the first quantity.
  • the report data is sampled to obtain a second amount of report data.
  • target sampling precision may be set in advance, or may be set when the microprocessor processes the first number of the report data, which is not limited in the embodiment of the present invention.
  • the microprocessor processes the plurality of report point data included in the first quantity of the report data simultaneously, that is, multiple times included in the first quantity of the report data in a parallel processing manner.
  • the report data is processed.
  • the application processor processes the first quantity of the report data by interrupting, that is, placing the plurality of report data included in the first quantity of the report data in the work queue corresponding to the interrupt.
  • the processing is sequentially performed in the order of the work queues, that is, the application processor in the prior art processes the plurality of report point data included in the first number of report data in a serial processing manner. Therefore, the embodiment of the present invention solves the problem that the processing of the report data in the application processor has an interrupt delay and a work queue delay in the prior art, and also improves the processing speed of the report data.
  • the microprocessor may also perform the second quantity of the report data obtained after the sampling.
  • the filtering process is performed to filter out noise in the second amount of the report data, thereby improving the signal to noise ratio of the data.
  • the microprocessor can filter the noise added in the second number of report data by low-pass filtering, thereby improving the signal-to-noise ratio of the data.
  • low-pass filtering is a filtering method, which means that the signal of low frequency can pass normally, and the signal of high frequency exceeding the set threshold is blocked and weakened, so the noise in the second number of reporting data can pass. Low pass filtering is performed to filter out.
  • Step 205 The application processor receives the second quantity of the report data, and generates a display image frame according to the second quantity of the report data.
  • the application processor When the application processor receives the second amount of the report data, the application processor does not need to process the second amount of the report data because the second amount of the report data is processed by the microprocessor.
  • the display image frame can be directly generated according to the second quantity of the report data, and the generated display image frame can be transmitted to the front-end application of the terminal, that is, the application that the user triggers the touch operation, the application
  • the program can display according to the display image frame, so that when the user performs a touch operation to generate a change of the display image frame, the terminal can quickly update and adjust the display image according to the generated display image frame, thereby improving the user experience.
  • step 204 the method further includes:
  • Step 206 The micro-processing determines a user action corresponding to the second quantity of the report data, and transmits the determination result to the application processor, where the user action includes a touch action or a sliding action.
  • the microprocessor may determine the user action corresponding to the second number of the report data, that is, when the second number of the report data is due to the touch action When the report data is reported, it is determined that the report data corresponds to the touch action, and when the second number of report data is the report data reported by the sliding action, determining the corresponding sliding action of the report data, and transmitting the determined result
  • the application processor is configured to cause the application processor to generate a corresponding display image frame according to the corresponding image generation rule when generating the display image frame.
  • the micro-processing may also determine a user action corresponding to the first quantity of the report data, and transmit the determination result to the application processor, and determine, according to the first quantity of the report data, the micro-processing.
  • the step 206 and the step 203 and the step 204 may be performed in a sequence, and the step 206 is only required to be performed after the step 202, before the application processor generates the display image frame in step 205, which is not limited by the embodiment of the present invention. .
  • step 205 when the application processor generates the display image frame according to the second number of report data, different display image frames may also be generated according to different determination results, as follows.
  • the application processor When the report data corresponds to the touch event, the application processor generates a display image frame corresponding to the first report data of the second number of report data according to the touch image generation rule, and then the application processor may Directly generating, according to the touch image generation rule, sequentially corresponding to other report data other than the first report data, in the order of other report data other than the first report data in the second number of report data. Display image frames.
  • the touch image generation rule refers to a display image frame in which the generated display image frame is not the entire display area, but only a display image frame of the touch area corresponding to the touch event.
  • the application processor when the application processor generates the display image frame according to the plurality of report data included in the second number of report data, the application processor only needs to determine when the display image frame corresponding to the first report data is generated. The If the touch event or the sliding event corresponding to the report data is a touch event, the application processor generates a display image frame corresponding to the other report data other than the first report data in the second number of report data. The corresponding display image frame can be generated directly by the touch image generation rule.
  • the application processor When the report data corresponds to the sliding event, the application processor generates a display image frame corresponding to the first report data in the second number of report data according to the sliding image generation rule, and then the application processor may Directly generating, according to the generation rule of the sliding image, in accordance with the order of the other report data other than the first report data in the second number of report data, sequentially generating other report data other than the first report data Display image frames.
  • the sliding image generation rule refers to that the generated display image frame is a display image frame of the entire display area.
  • the application processor when the application processor generates the display image frame according to the plurality of report data included in the second number of the report data, the application processor only needs to generate the display image corresponding to the first report data, as in the case of the touch event.
  • the touch event or the sliding event corresponding to the report data is determined, and when the display image frame corresponding to the other report data other than the first report data is generated in the second number of report data, the A generation rule of the report data generates a display image frame corresponding to the other report data without determining a touch event or a slide event for each report data.
  • the method further includes:
  • Step 207 When the touch screen does not detect the touch operation within the preset time period, the application processor stops transmitting the frame synchronization signal to the microprocessor.
  • the application processor may stop sending the frame synchronization to the microprocessor.
  • the signal that is, the application processor turns off the frame synchronization signal or masks the frame synchronization signal, so that the power consumption of the terminal can be reduced when the touch screen does not detect the touch operation.
  • the touch operation can be triggered by the user, and the user can trigger by multiple different touch operations such as clicking, double clicking, long pressing, and sliding.
  • the interaction process between the touch screen, the micro processing, and the application processor is as shown in FIG. 8 , the touch screen and the microprocessor belong to a low power consumption region, and the application processor belongs to a high power consumption region, FIG. 8
  • the ASRC refers to the process of processing the report data according to the frame synchronization signal by the micro processing.
  • the specific ASRC process is shown in FIG. 9.
  • the touch screen generates the report data, the process of reporting the report data to the microprocessor, the process of receiving and processing the report data by the micro process, and the application processor generating the display according to the second quantity of the report data.
  • the process of image frames has a partially overlapping relationship in time, as shown in FIG.
  • the touch screen generates the report point data, reports the report point data to the microprocessor according to the preset report report rate, and the microprocessor receives the report point data and the frame sent by the application processor. Synchronizing the signal, and processing the first quantity of the report data received within the preset time according to the frame synchronization signal to obtain a second quantity of the report data, and transmitting the second quantity of the report data to the application processor, applying The processor receives the second quantity of the report data, and generates a display image frame according to the second quantity of the report data, thereby solving the problem that the report data has an interrupt delay and a work queue delay during processing, and the report data is improved.
  • the response speed also avoids the problem of uneven image display during dragging.
  • the application processor stops transmitting the frame synchronization signal to the microprocessor, thereby effectively reducing the terminal's Power consumption.
  • FIG. 11 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
  • the apparatus includes:
  • the detecting unit 301 is configured to generate the report data, and report the report data to the first processing unit according to the preset report reporting rate, where the report data includes the contact information when the detecting unit is touched;
  • the first processing unit 302 is configured to receive the report data.
  • the first processing unit 302 is further configured to receive a frame synchronization signal sent by the second processing unit 303, where the frame synchronization signal is a periodic signal synchronized with a display frame rate;
  • the first processing unit 302 is further configured to process, according to the frame synchronization signal, the first quantity of the report data received in the preset time to obtain a second quantity of the report data, and transmit the second quantity of the report data to a second processing unit, the second quantity being less than the first quantity;
  • the second processing unit 303 is configured to receive a second quantity of the report data, and generate a display image frame according to the second quantity of the report data.
  • the first processing unit 302 is configured to: sample the first quantity of the report data received in the preset time according to the frame synchronization signal, to obtain a second quantity of the report data.
  • the first processing unit 302 is further configured to:
  • the first quantity of the report data is interpolated to obtain a third quantity of the report data, and the third quantity is greater than the first quantity;
  • the first processing unit 302 is configured to: sample the third number of the report data after the interpolation process according to the frame synchronization signal, to obtain a second quantity of the report data.
  • the first processing unit 302 is further configured to: determine a user action corresponding to the second number of the report data, and transmit the determination result to the second processing unit 303, where the user action includes a touch Action or sliding action.
  • the detecting unit 301 is further configured to: receive a display frame rate sent by the second processing unit; and determine a preset report reporting rate according to the display frame rate.
  • the second processing unit 303 is further configured to stop sending the frame synchronization signal to the first processing unit 302 when the detecting unit 301 does not detect the touch operation within the preset time period.
  • the first processing unit 302 is further configured to: perform low-pass filtering processing on the second quantity of the report data.
  • the data processing apparatus generates the report data by the detecting unit, reports the report data to the first processing unit according to the preset report reporting rate, and receives the report data and the second process by the first processing unit.
  • a frame synchronization signal sent by the unit, and processing the first quantity of the report data received within the preset time according to the frame synchronization signal to obtain a second quantity of the report data, and transmitting the second quantity of the report data to the first a processing unit
  • the second processing unit receives the second quantity of the report data, and generates a display image frame according to the second quantity of the report data, thereby solving the problem that the report data has an interrupt delay and a work queue delay during processing , the response speed of the report data is improved, and the problem that the image display is uneven when dragging is also avoided.
  • a terminal provided by an embodiment of the present invention referring to FIG. 1, the terminal includes: a touch screen 103, a microprocessor 102, and an application processor 101;
  • the touch screen 103 is configured to generate the report data, and report the report data to the microprocessor 102 according to the preset report reporting rate, where the report data includes contact information when the touch screen 103 is touched;
  • the microprocessor 102 is configured to receive the report data.
  • the microprocessor 102 is further configured to receive a frame synchronization signal sent by the application processor 101, where the frame synchronization signal is a periodic signal synchronized with a display frame rate;
  • the microprocessor 102 is further configured to process, according to the frame synchronization signal, the first quantity of the report data received in the preset time to obtain a second quantity of the report data, and transmit the second quantity of the report data to the application.
  • the processor 101, the second quantity is less than the first quantity;
  • the application processor 101 is configured to receive a second quantity of the report data, and generate a display image frame according to the second quantity of the report data.
  • the microprocessor 102 is configured to: sample the first quantity of the report data received in the preset time according to the frame synchronization signal to obtain a second quantity of the report data.
  • microprocessor 102 is further configured to:
  • the first quantity of the report data is interpolated to obtain a third quantity of the report data, and the third quantity is greater than the first quantity;
  • the microprocessor 102 is specifically configured to: sample the third quantity of the report data after the interpolation process according to the frame synchronization signal to obtain a second quantity of the report data.
  • the microprocessor 102 is further configured to: determine a user action corresponding to the second number of the report data, and transmit the determination result to the application processor 101, where the user action includes a touch action or Sliding action.
  • the touch screen 103 is further configured to: receive a display frame rate sent by the application processor 101; and determine a preset report reporting rate according to the display frame rate.
  • the application processor 101 is further configured to stop transmitting the frame synchronization signal to the microprocessor 102 when the touch screen 103 does not detect the touch operation within the preset time period.
  • the microprocessor 102 is further configured to: perform low pass filtering processing on the second number of report data.
  • the terminal provided by the embodiment of the present invention generates report data through the touch screen, reports the report data to the microprocessor according to the preset report reporting rate, and receives the report data and the frame synchronization signal sent by the application processor by the microprocessor. And processing, according to the frame synchronization signal, the first quantity of the report data received in the preset time to obtain a second quantity of the report data, and transmitting the second quantity of the report data to the application processor, the application processor Receiving a second quantity of the report data, and generating a display image frame according to the second quantity of the report data, thereby solving the problem that the report data has an interrupt delay and a work queue delay during processing, and improving the response of the report data. Speed also avoids the problem of uneven image display when dragging.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例提供数据处理方法及装置,涉及通信技术领域,解决了终端对报点数据进行处理时响应速度慢、显示图像拖动不均匀的问题。所述方法包括:触摸屏生成报点数据,并根据预设报点上报率上报所述报点数据至微处理器,报点数据中包括触摸屏被触摸时的触点信息;微处理器接收报点数据,以及接收应用处理器发送的帧同步信号,帧同步信号为与显示帧率同步的周期信号;微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器,第二数量小于第一数量;应用处理器接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。

Description

数据处理方法及装置 技术领域
本发明涉及通信技术领域,尤其涉及数据处理方法及装置。
背景技术
随着通信技术的快速发展,基于电容式触摸屏的移动终端得到了广泛应用,移动终端上越来越多的应用程序也使用触摸操作替代传统的按键,比如,输入法,游戏按键等等。
由于电容式触摸屏的响应时间大约在100ms,当用户滑动屏幕,通过触摸操作替代游戏按键的时候,用户期望操作就像现实拖动的感觉,也就是说,用户期望移动终端显示界面的显示图像可以随着用户的触摸操作进行实时的变化显示。
目前,当触摸屏将报点数据发送给移动终端的应用处理器进行数据处理时,应用处理器通常是采用中断的方式,且由于中断的数量有限性,通常是多个通用输入输出GPIO共享一个中断,因此触摸屏的报点数据很有可能被其他的中断锁定,或者在某一中断对应的工作队列WQ中等待处理,因此,导致报点数据的处理存在延迟响应的问题。另外,由于报点数据的上报速率与显示器的显示速率不是倍数关系,因此每一个上报点与显示器的帧不能完全同步,且每一个点的延迟都不相同,从而导致图像显示时出现拖动不均匀的问题。
发明内容
本发明的实施例提供一种数据处理方法及装置,解决了现有技术中终端对报点数据进行处理时响应速度慢、以及拖动不均匀的问题。
为达到上述目的,本发明的实施例采用如下技术方案:
第一方面,提供一种数据处理方法,该方法应用于终端,该终端中设置有触摸屏、微处理器和应用处理器,该方法包括:触摸屏生成报点数据,并根据预设报点上报率上报该报点数据至微处理器,该报点数据中包括触摸屏被触摸时的触点信息;微处理器接收该报点数据;微处理器接收应用处理器发送的帧同步信号,帧同步信号为与显示帧率同步的周期信号;微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器,第二数量小于第一数量;应用处理器接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。
第二方面,提供一种数据处理装置,该装置包括:检测单元,用于生成报点数据,根据预设报点上报率上报该报点数据至第一处理单元,该报点数据中包括检测单元被触摸时的触点信息;第一处理单元,用于接收该报点数据;第一处理单元,还用于接收第二处理单元发送的帧同步信号,帧同步信号为与显示帧率同步的周期信号;第一处理单元,还用于根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至第二处理单元,第二数量小于第一数量;第二处理单元,用于接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。
第三方面,提供一种终端,该终端包括:触摸屏、微处理器和应用处理器;其中,触摸屏,用于生成报点数据,根据预设报点上报率上报该报点数据至微处理器,该报点数据中包括触摸屏被触摸时的触点信息;微处理器,用于接收该报点数据;微处理器,还用于接收应用处理器发送的帧同步信号,帧同步信号为与显示帧率同步的周期信号;微处理器,还用于根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器,第二数量小于第一数量;应用处理器,用于接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。
上述技术方案中,对于第一数量的报点数据是根据帧同步信号,并以并行处理方式对第一数量的报点数据包括的多个报点数据进行处理,而不是通过中断的方式进行处理,因此,避免了对报点数据的处理存在中断延迟和工作队列延迟的问题,同时也解决了显示图像拖动不均匀的问题。
可选的,基于第一方面,微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的第二报点数据,包括:
微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
可选的,基于第二方面,第一处理单元具体用于:根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
可选的,基于第三方面,微处理器具体用于:根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
上述可选的技术方案中,通过帧同步信号对预设时间内接收的第一数量的报点数据进行采样,使得帧同步信号的每个周期内都对应第二数量的报点数据中的一个采样点,保证了报点数据和显示的同步。
可选的,基于第一方面,微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样之前,该方法还包括:微处理器确定第一数量的报点数据的精度是否小于目标采样精度;若确定第一数量的报点数据的精度小于目标采样精度,微处理器对第一数量的报点数据进行插值处理,得到第三数量的报点数据,第三数量大于第一数量;相应的,微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据,包括:微处理器根据帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
可选的,基于第二方面,第一处理单元还用于:确定第一数量的报点数据的精度是否小于目标采样精度;若确定第一数量的报点数据的精度小于目标采样精度,对第一数量的报点数据进行插值处理,得到第三数量的报点数据,第三数量大于第一数量;相应的,第一处理单元具体用于:根据帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
可选的,基于第三方面,微处理器还用于:确定第一数量的报点数据的精度是否小于目标采样精度;若确定第一数量的报点数据的精度小于目标采样精度,对第一数量的报点数据进行插值处理,得到第三数量的报点数据,第三数量大于第一数量;相应的,微处理器具体用于:根据帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
上述可选的技术方案中,当第一数量的报点数据的精度小于目标采样精度时,代表第一数量的报点数据不足以根据帧同步信号进行采样,因此微处理器需要先对该报点数据进行内插值处理,然后再根据该帧同步信号对处理后的报点数据进行采样。
可选的,基于第一方面,微处理器得到第二数量的报点数据之后,该方法还包括:微处理器确定第二数量的报点数据所对应的用户动作,并将确定结果传输至应用处理器,用户动作包括触摸动作或滑动动作。
可选的,基于第二方面,第一处理单元还用于:确定第二数量的报点数据所对应的用户动作,并将确定结果传输至第二处理单元,用户动作包括触摸动作或滑动动作。
可选的,基于第三方面,微处理器还用于:确定第二数量的报点数据所对应的用户动作,并将确定结果传输至应用处理器,用户动作包括触摸动作或滑动动作。
上述可选的技术方案中,由微处理器确定第二数量的报点数据所对应的用户动作,并将确定结果传输至应用处理器,提高了应用处理器根据第二数量的报点数据生成显示图像帧的速率。
可选的,基于第一方面,触摸屏生成报点数据,根据预设报点上报率上报该报点数据至微处理器之前,该方法还包括:触摸屏接收应用处理器发送的显示帧率;触摸屏根据显示帧率确定预设报点上报率。
可选的,基于第二方面,检测单元还用于:接收第二处理单元发送的显示帧率;根据显示帧率确定预设报点上报率。
可选的,基于第三方面,触摸屏还用于:接收应用处理器发送的显示帧率;根据显示帧率确定预设报点上报率。
上述可选的方案中,通过根据接收的显示帧率确定预设报点上报率,可以使预设报点上报率与图像显示时的显示帧率一致,这样,每一次上报的报点数据都会表现在显示的图像中,从而与现有技术中触摸屏按照固定频率传输报点数据相比,避免了因固定频率传输报点数据而生成显示图像的浪费问题,同时也减少了终端的一部分功耗。
可选的,基于第一方面,当触摸屏在预设时间段内没有检测到触摸操作时,应用处理器停止向微处理器发送帧同步信号。
可选的,基于第二方面,第二处理单元还用于:当检测单元在预设时间段内没有检测到触摸操作时,停止向第一处理单元发送帧同步信号。
可选的,基于第三方面,应用处理器还用于:当触摸屏在预设时间段内没有检测到触摸操作时,停止向微处理器发送帧同步信号。
上述可选的技术方案中,当检测不到触摸操作时,可以停止发送帧同步信号,可以减少发送帧同步信号给该终端带来的功耗。
可选的,基于第一方面,微处理器将第二数量的报点数据传输至应用处理器之前,该方法还包括:微处理器对第二数量的报点数据进行低通滤波处理。
可选的,基于第二方面,第一处理单元还用于:对第二数量的报点数据进行低通滤波处理。
可选的,基于第三方面,微处理器还用于:对第二数量的报点数据进行低通滤波处理。
上述可选的技术方案中,对采样得到的第二数量的报点数据进行低通滤波处理,可以滤除第二数量的报点数据中的噪声,从而提高数据的信噪比,进而提高生成显示图像帧的清晰度。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一种终端的结构示意图;
图2为另一种终端的结构示意图;
图3为本发明实施例提供的一种数据处理方法的流程示意图;
图4为本发明实施例提供的一种帧同步信号的示意图;
图5为本发明实施例提供的一种对报点数据进行采样的示意图;
图6为本发明实施例提供的另一种数据处理方法的流程示意图;
图7为本发明实施例提供的又一种数据处理方法的流程示意图;
图8为本发明实施例提供的一种数据处理方法的信令交互示意图;
图9为本发明实施例提供的一种ASRC的流程示意图;
图10为本发明实施例提供的一种数据处理方法的时序示意图;
图11为本发明实施例提供的一种数据处理装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供的数据处理方法可以由终端执行,该终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等等。图1示出的是与本发明各实施例相关的终端的部分结构框图。如图1所示,该终端10包括:应用处理器101、微处理器102和触摸屏103。
其中,应用处理器101和微处理器102是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,且具有数据处理功能,应用处理器101主要处理操作系统、用户界面和应用程序等,微处理器102可以代替应用处理器101执行一部分指令或具有应用处理器101的部分功能。同时,应用处理器101和微处理器102之间还可以进行通信,即应用处理器101和微处理器102之间可以进行数据传输,且该数据传输可以是双向传输。当然,应用处理器101与微处理器102可以集成到处理器中,也可以单独设置。该微处理器可以是功耗较小的处理芯片,比如,该微处理器可以是具有软件编程功能的单片机MCU、数字信号处理芯片DSP、传感器中心SensorHub、或者是可编程逻辑器件等,该微处理器的价格便宜,功耗也比较小。比如,该微处理器可以为美国德州仪器开发的微处理器MSP430、 恩智浦半导体公司开发的LPC18A1、或者STM32L151RB等。
另外,触摸屏103可以分为触摸屏感应器和触摸屏控制器,触摸屏感应器用于检测用户触摸触摸屏时的触点信息,用户触摸触摸屏时的用户动作可以是触摸动作,也可以是滑动动作。触摸屏感应器接收触点信息后将相应的指令发送给触摸屏控制器,触摸屏控制器的主要作用是从触摸屏感应器上接收触点信息,并将它转换成触点坐标,再发送给终端的处理器,该处理器包括应用处理器101和微处理器102,它同时能接收终端的处理器发来的命令并加以执行。
进一步的,参见图2,该终端还可以包括存储器104、传感器组件105、电源组件106、以及输入\输出接口107等。
其中,存储器104可用于存储数据、软件程序以及模块;主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器104可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
传感器组件105包括一个或多个传感器,用于为终端提供各个方面的状态评估。其中,传感器组件105可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器等,通过传感器组件可以检测到终端的加速/减速、方位、打开/关闭状态,组件的相对定位,或终端的温度变化等。此外,传感器组件还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。
电源组件106用于为终端的各个组件提供电源,电源组件106可以包括电源管理系统,一个或多个电源,及其他与终端生成、管理和分配电力相关联的组件。输入\输出接口107为处理器和外围接口模块之间提供接口,比如,外围接口模块可以键盘、鼠标等。
尽管未示出,终端还可以包括音频组件、多媒体组件和通信组件等,比如,音频组件包括麦克风,多媒体组件包括摄像头,通信组件包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,本发明实施例在此不再赘述。
本领域普通技术人员可以理解,图1、图2所示的硬件结构仅为示意,其并不对中终端的结构造成限定。该终端还可包括比图1、图2中所示更多或者更少的组件,或者具有与图1、图2所示不同的配置。
图3为本发明实施例提供的一种数据传输方法的流程示意图,参见图3,该方法应用于图1或图2所示的终端,该方法包括以下几个步骤。
步骤201:触摸屏生成报点数据,根据预设报点上报率上报该报点数据至微处理器,该报点数据中包括触摸屏被触摸时的触点信息。
该触摸屏可以包括触摸屏感应器和触摸屏控制器,触摸屏感应器用于检测触摸操作,并将触摸操作对应的触摸信息发送给触摸屏控制器,当触摸屏控制器接收到该触摸信息时,将该触摸信息转换成对应的报点数据,以及根据预设报点上报率将该报点数据上报给微处理器。其中,该报点数据包括的触摸屏被触摸时的触点信息可以为触点坐标。另外,该触摸屏感应器检测的用户动作可以为触摸操作,比如,单击、双击、长按等操作,也可以为滑动操作,比如,上下滑动、左右滑动等。
需要说明的是,预设报点上报率是指触摸屏在预设报点向微处理器上报报点数据的频率,该预设报点上报率可以事先进行设置,在可以在触摸屏上报该报点数据 之前进行设置,本发明实施例对此不作限定。
比如,当用户在触摸屏上通过滑动操作作为游戏按键使用的时候,用户可以通过上下滑动、左右滑动等不同的触摸操作触发不同的控制指令,当触摸屏在检测到该触摸操作时,可以生成与该触摸操作对应的报点数据,并按照预设报点上报率将该报点数据上报至微处理器,其中,该报点数据包括与用户的滑动操作对应的触点信息。
步骤202:微处理器接收报点数据,该报点数据中包括触摸屏被触摸时的触点信息。
其中,步骤202中的报点数据与步骤201中的报点数据一致,本发明实施例在此不再赘述。
步骤203:微处理器接收应用处理器发送的帧同步信号,该帧同步信号为与显示帧率同步的周期信号。
其中,显示帧率是用于测量显示帧数的量度,即每秒显示帧数。帧同步信号为与显示帧率同步的周期信号,是指该帧同步信号是一个周期信号,且周期的取值与显示帧率有关,且帧同步信号的开始时间和帧显示的开始时间相关。比如,该显示帧率为每秒60帧,则显示一帧的时长约为16ms,则该帧同步信号的周期取值为16ms。
比如,如图4所示,应用处理器根据显示帧率在时间轴t上进行图像显示时的状态如(I)所示,则该帧同步信号可以如(II)或(III)所示。其中,当该帧同步信号如(II)所示时,该帧同步信号在有帧显示时为高电平,没有帧显示时为低电平,即该帧同步信号的高低电平变化的状态与根据显示帧率进行图像显示时的状态相同;当该帧同步信号如(III)所示时,该帧同步信号在有帧显示时为低电平,没有帧显示时为高电平,即该帧同步信号的高低电平变化的状态与根据显示帧率进行图像显示时的状态相反。帧同步信号的具体形态在此不作限定。
相应的,在步骤201中触摸屏生成报点数据,并根据预设报点上报率上报该报点数据至微处理器之前,该方法还可以包括:触摸屏接收应用处理器发送的显示帧率,并根据该显示帧率确定预设报点上报率。当该预设报点上报率确定之后,触摸屏就可以根据确定的预设报点上报率,将生成的报点数据上报至微处理器。
也即是,使触摸屏的预设报点上报率与图像显示时的显示帧率一致,这样,触摸屏每一次上报的报点数据都会表现在显示的图像中,从而与现有技术中触摸屏按照固定频率传输报点数据相比,避免了因固定频率传输报点数据而生成显示图像的浪费问题,同时也减少了终端的一部分功耗。
步骤204:微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器,第二数量小于第一数量。
当微处理器接收到触摸屏上报的报点数据,以及接收到应用处理器发送的帧同步信号时,微处理器可以根据该帧同步信号对预设时间内接收的第一数量的报点数据进行处理,该处理过程可以为:微处理器根据该帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据,该第二数量小于第一数量,在处理得到第二数量的报点数据时,微处理器可以将该第二数量的报点数据传 输至应用处理器。
具体的,如图5所示,当微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样时,由于该帧同步信号是方波周期信号,微处理器可以在该帧同步信号每个周期的方波的上升沿获取一个采样点,从而得到第二数量的报点数据。如图5所示,第一数量的报点数据为A,该帧同步信号为B,第二数量的报点数据为C,这样,该帧同步信号的每个周期内都对应第二数量的报点数据中的一个采样点。
需要说明的是,该预设时间可以事先进行设置,且该预设时间可以是固定不变的,也可以是时常变化的,本发明实施例对此不作限定。
进一步的,在微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据之前,该方法还包括:微处理器确定第一数量的报点数据的精度是否小于目标采样精度;若确定第一数量的报点数据的精度小于目标采样精度,则微处理器对第一数量的报点数据进行插值处理,得到第三数量的报点数据,第三数量大于第一数量。
相应的,微处理器根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据,具体为:微处理器根据帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
也即是,在对第一数量的报点数据在采样之前,可以先判断第一数量的报点数据的精度是否满足采样时所需的精度,即第一数量的报点数据的精度是否小于目标采样精度。若小于目标采样精度,代表第一数量的报点数据不足以根据帧同步信号进行采样,因此微处理器需要先对该报点数据进行内插值处理,然后再根据该帧同步信号对处理后的报点数据进行采样。若第一数量的报点数据的精度较高,即第一数量的报点数据的精度大于等于目标采样精度时,微处理器无需对该报点数据进行内插值处理,可以直接对第一数量的报点数据进行采样,得到第二数量的报点数据。
其中,当第一数量的报点数据的精度小于目标采样精度时,微处理器对第一数量的报点数据进行插值处理过程与现有技术一致,具体参见相关技术,本发明实施例在此不作阐述。
需要说明的是,目标采样精度可以事先进行设置,也可以在微处理器对该第一数量的报点数据进行处理时进行设置,本发明实施例对此不作限定。
本发明实施例中微处理器对第一数量的报点数据包括的多个报点数据是同时进行处理的,也即是,以并行处理方式对该第一数量的报点数据包括的多个报点数据进行处理。而现有技术中应用处理器对该第一数量的报点数据进行处理时是通过中断的方式进行处理,即将第一数量的报点数据包括的多个报点数据放在中断对应的工作队列中,按照工作队列的顺序依次进行处理,也即是,现有技术中应用处理器是以串行处理方式对该第一数量的报点数据包括的多个报点数据进行处理。因此,本发明实施例解决了现有技术中应用处理器对报点数据的处理存在中断延迟和工作队列延迟的问题,同时也提高了报点数据的处理速度。
进一步的,在微处理器对第一数量的报点数据进行处理,得到第二数量的报点数据的过程中,该微处理器还可以对采样后得到的第二数量的报点数据进行低通滤波处理,从而滤掉该第二数量的报点数据中的噪声,从而提高数据的信噪比。
具体的,由于该第二数量的报点数据在传输和处理的过程中,不可避免的加入了一些噪声,而通常这些噪声的频率都比第二数量的报点数据的频率要高,因此,微处理器可以通过低通滤波的处理方式,滤除该第二数量的报点数据中加入的噪声,从而提高数据的信噪比。其中,低通滤波是一种过滤方式,是指低频率的信号能正常通过,超过设定临界值的高频率的信号则被阻隔、减弱,所以第二数量的报点数据中的噪声可以通过低通滤波进行滤除。
步骤205:应用处理器接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。
当应用处理器接收到第二数量的报点数据时,由于该第二数量的报点数据是微处理器处理后的数据,因此,应用处理器无需对该第二数量的报点数据进行处理,可以直接根据该第二数量的报点数据生成显示图像帧,进而可以将生成的显示图像帧传输至该终端的最前端的应用程序,也即是,用户触发触摸操作的应用程序,该应用程序可以根据该显示图像帧进行显示,从而使得用户在进行触摸操作而产生显示图像帧发生变化时,该终端能够根据生成的显示图像帧快速地对显示画面进行更新和调整,进而提高用户体验。
进一步的,参见图6,在步骤204之后,该方法还包括:
步骤206:微处理确定第二数量的报点数据所对应的用户动作,并将确定结果传输至应用处理器,该用户动作包括触摸动作或滑动动作。
当微处理器得到第二数量的报点数据时,微处理器可以对第二数量的报点数据所对应的用户动作进行确定,也即是,当第二数量的报点数据是由于触摸动作上报的报点数据时,确定该报点数据对应触摸动作,当第二数量的报点数据是由于滑动动作上报的报点数据时,确定该报点数据对应滑动动作,并将确定的结果发送给应用处理器,使得应用处理器在生成显示图像帧时,可以根据相应的图像生成规则,生成对应的显示图像帧。
需要说明的是,步骤206中,微处理也可以确定第一数量的报点数据所对应的用户动作,并将确定结果传输至应用处理器,当微处理根据第一数量的报点数据确定对应的用户动作时,步骤206与步骤203和步骤204可以不分先后顺序,步骤206只需在步骤202之后,在步骤205应用处理器生成显示图像帧之前即可,本发明实施例对此不作限定。
相应的,步骤205中,应用处理器根据第二数量的报点数据生成显示图像帧时,也可以根据确定结果的不同,生成不同的显示图像帧,具体如下所述。
(1)、当该报点数据对应触摸事件时,应用处理器根据触摸图像生成规则,生成第二数量的报点数据中第一个报点数据对应的显示图像帧,之后,应用处理器可以直接根据该触摸图像生成规则,按照第二数量的报点数据中除第一个报点数据以外的其他报点数据的顺序,依次生成除第一个报点数据以外的其他报点数据对应的显示图像帧。
其中,触摸图像生成规则是指生成的显示图像帧不是整个显示区域的显示图像帧,只是与触摸事件对应的触摸区域的显示图像帧。
也即是,当应用处理器根据第二数量的报点数据包括的多个报点数据生成显示图像帧时,应用处理器只需要在生成第一个报点数据对应的显示图像帧时,确定该 报点数据对应的触摸事件或滑动事件,若为触摸事件,则应用处理器在生成第二数量的报点数据中除第一个报点数据以外的其他报点数据对应的显示图像帧时,可以直接以触摸图像生成规则生成对应的显示图像帧。
(2)、当该报点数据对应滑动事件时,应用处理器根据滑动图像生成规则,生成第二数量的报点数据中第一个报点数据对应的显示图像帧,之后,应用处理器可以直接根据滑动图像的生成规则,按照第二数量的报点数据中除第一个报点数据以外的其他报点数据的顺序,依次生成除第一个报点数据以外的其他报点数据对应的显示图像帧。
其中,滑动图像生成规则是指生成的显示图像帧是整个显示区域的显示图像帧。另外,应用处理器根据第二数量的报点数据包括的多个报点数据生成显示图像帧时,与上述触摸事件时一样,应用处理器只需要在生成第一个报点数据对应的显示图像帧时,确定该报点数据对应的触摸事件或滑动事件,在生成第二数量的报点数据中除第一个报点数据以外的其他报点数据对应的显示图像帧时,可以直接按照第一个报点数据的生成规则生成其他报点数据对应的显示图像帧,而无需每个报点数据都确定一次触摸事件或滑动事件。
进一步的,参见图7,该方法还包括:
步骤207:当触摸屏在预设时间段内没有检测到触摸操作时,应用处理器停止向微处理器发送帧同步信号。
当触摸屏在预设时间段内没有检测到触摸操作时,可以确定用户未对该终端的触摸屏进行触摸操作,从而当触摸屏检测不到触摸操作时,应用处理器可以停止向微处理器发送帧同步信号,即应用处理器关闭帧同步信号或者屏蔽掉该帧同步信号,从而可以在触摸屏未检测触摸操作时,减小该终端的功耗。
其中,该触摸操作可以由用户触发,用户可以通过单击、双击、长按、滑动等多种不同的触摸操作进行触发。
在本发明实施例中,触摸屏、微处理、以及应用处理器之间的交互过程如图8所示,触摸屏和微处理器属于低功耗区域,应用处理器属于高功耗区域,图8中的ASRC是指微处理根据帧同步信号对报点数据进行处理的过程,具体的ASRC过程如图9所示。
需要说明的是,触摸屏生成报点数据,将该报点数据上报至微处理器的过程、微处理接收并处理该报点数据的过程、以及应用处理器根据第二数量的报点数据生成显示图像帧的过程,在时间上存在部分重叠的关系,具体如图10所示。
本发明实施例提供的数据处理方法中,触摸屏生成报点数据,根据预设报点上报率上报该报点数据至微处理器,由微处理器接收该报点数据和应用处理器发送的帧同步信号,以及根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器,应用处理器接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧,从而解决了该报点数据在处理时存在中断延迟和工作队列延迟的问题,提高了报点数据的响应速度,也避免了在拖动时图像显示不均匀的问题,另外,在触摸屏检测不到触摸操作时,应用处理器停止向微处理器发送帧同步信号,从而有效的降低了该终端的功耗。
图11为本发明实施例提供的一种数据处理装置的结构示意图,参见图11,该装置包括:
检测单元301,用于生成报点数据,根据预设报点上报率上报个报点数据至第一处理单元,该报点数据中包括检测单元被触摸时的触点信息;
第一处理单元302,用于接收该报点数据;
第一处理单元302,还用于接收第二处理单元303发送的帧同步信号,帧同步信号为与显示帧率同步的周期信号;
第一处理单元302,还用于根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至第二处理单元,第二数量小于第一数量;
第二处理单元303,用于接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。
可选的,第一处理单元302具体用于:根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
在本发明的另一实施例中,第一处理单元302还用于:
确定第一数量的报点数据的精度是否小于目标采样精度;
若确定第一数量的报点数据的精度小于目标采样精度,对第一数量的报点数据进行插值处理,得到第三数量的报点数据,第三数量大于第一数量;
相应的,第一处理单元302具体用于:根据帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
在本发明的另一实施例中,第一处理单元302还用于:确定第二数量的报点数据所对应的用户动作,并将确定结果传输至第二处理单元303,该用户动作包括触摸动作或滑动动作。
在本发明的另一实施例中,该检测单元301还用于:接收第二处理单元发送的显示帧率;根据显示帧率确定预设报点上报率。
在本发明的另一实施例中,第二处理单元303还用于:当检测单元301在预设时间段内没有检测到触摸操作时,停止向第一处理单元302发送帧同步信号。
可选的,第一处理单元302还用于:对第二数量的报点数据进行低通滤波处理。
本发明实施例提供的数据处理装置,通过检测单元生成报点数据,根据预设报点上报率上报该报点数据至第一处理单元,由第一处理单元接收该报点数据和第二处理单元发送的帧同步信号,以及根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至第二处理单元,第二处理单元接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧,从而解决了该报点数据在处理时存在中断延迟和工作队列延迟的问题,提高了报点数据的响应速度,也避免了在拖动时图像显示不均匀的问题。
本发明实施例提供的一种终端,参见图1,该终端包括:触摸屏103、微处理器102和应用处理器101;
触摸屏103,用于生成报点数据,根据预设报点上报率上报该报点数据至微处理器102,该报点数据中包括触摸屏103被触摸时的触点信息;
微处理器102,用于接收该报点数据;
微处理器102,还用于接收应用处理器101发送的帧同步信号,帧同步信号为与显示帧率同步的周期信号;
微处理器102,还用于根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器101,第二数量小于第一数量;
应用处理器101,用于接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧。
可选的,微处理器102具体用于:根据帧同步信号对预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
在本发明的另一实施例中,微处理器102还用于:
确定第一数量的报点数据的精度是否小于目标采样精度;
若确定第一数量的报点数据的精度小于目标采样精度,对第一数量的报点数据进行插值处理,得到第三数量的报点数据,第三数量大于第一数量;
相应的,微处理器102具体用于:根据帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
在本发明的另一实施例中,微处理器102还用于:确定第二数量的报点数据所对应的用户动作,并将确定结果传输至应用处理器101,该用户动作包括触摸动作或滑动动作。
在本发明的另一实施例中,触摸屏103还用于:接收应用处理器101发送的显示帧率;根据显示帧率确定预设报点上报率。
在本发明的另一实施例中,应用处理器101还用于:当触摸屏103在预设时间段内没有检测到触摸操作时,停止向微处理器102发送帧同步信号。
在本发明的另一实施例中,微处理器102还用于:对第二数量的报点数据进行低通滤波处理。
本发明实施例提供的终端,通过触摸屏生成报点数据,根据预设报点上报率上报该报点数据至微处理器,由微处理器接收该报点数据和应用处理器发送的帧同步信号,以及根据帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将第二数量的报点数据传输至应用处理器,应用处理器接收第二数量的报点数据,并根据第二数量的报点数据生成显示图像帧,从而解决了该报点数据在处理时存在中断延迟和工作队列延迟的问题,提高了报点数据的响应速度,也避免了在拖动时图像显示不均匀的问题。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (21)

  1. 一种数据处理方法,其特征在于,所述方法应用于终端,所述终端中设置有触摸屏、微处理器和应用处理器,所述方法包括:
    所述触摸屏生成报点数据,并根据预设报点上报率上报所述报点数据至所述微处理器,所述报点数据中包括所述触摸屏被触摸时的触点信息;
    所述微处理器接收所述报点数据;
    所述微处理器接收所述应用处理器发送的帧同步信号,所述帧同步信号为与显示帧率同步的周期信号;
    所述微处理器根据所述帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将所述第二数量的报点数据传输至所述应用处理器,所述第二数量小于所述第一数量;
    所述应用处理器接收所述第二数量的报点数据,并根据所述第二数量的报点数据生成显示图像帧。
  2. 根据权利要求1所述的方法,其特征在于,所述微处理器根据所述帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的第二报点数据,包括:
    所述微处理器根据所述帧同步信号对所述预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
  3. 根据权利要求2所述的方法,其特征在于,所述微处理器根据所述帧同步信号对所述预设时间内接收的第一数量的报点数据进行采样之前,所述方法还包括:
    所述微处理器确定所述第一数量的报点数据的精度是否小于目标采样精度;
    若确定所述第一数量的报点数据的精度小于所述目标采样精度,所述微处理器对所述第一数量的报点数据进行插值处理,得到第三数量的报点数据,所述第三数量大于所述第一数量;
    所述微处理器根据所述帧同步信号对所述预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据,包括:
    所述微处理器根据所述帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述得到第二数量的报点数据之后,所述方法还包括:
    所述微处理器确定所述第二数量的报点数据所对应的用户动作,并将确定结果传输至所述应用处理器,所述用户动作包括触摸动作或滑动动作。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述触摸屏生成报点数据,根据预设报点上报率上报所述报点数据至所述微处理器之前,所述方法还包括:
    所述触摸屏接收所述应用处理器发送的显示帧率;
    所述触摸屏根据所述显示帧率确定预设报点上报率。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    当所述触摸屏在预设时间段内没有检测到所述触摸操作时,所述应用处理器停止向所述微处理器发送所述帧同步信号。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述微处理器将所述第二 数量的报点数据传输至所述应用处理器之前,所述方法还包括:
    所述微处理器对所述第二数量的报点数据进行低通滤波处理。
  8. 一种数据处理装置,其特征在于,所述装置包括:
    检测单元,用于生成报点数据,根据预设报点上报率上报所述报点数据至第一处理单元,所述报点数据中包括所述检测单元被触摸时的触点信息;
    所述第一处理单元,用于接收所述报点数据;
    所述第一处理单元,还用于接收第二处理单元发送的帧同步信号,所述帧同步信号为与显示帧率同步的周期信号;
    所述第一处理单元,还用于根据所述帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将所述第二数量的报点数据传输至所述第二处理单元,所述第二数量小于所述第一数量;
    所述第二处理单元,用于接收所述第二数量的报点数据,并根据所述第二数量的报点数据生成显示图像帧。
  9. 根据权利要求8所述的装置,其特征在于,所述第一处理单元具体用于:
    根据所述帧同步信号对所述预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
  10. 根据权利要求9所述的装置,其特征在于,所述第一处理单元还用于:
    确定所述第一数量的报点数据的精度是否小于目标采样精度;
    若确定所述第一数量的报点数据的精度小于所述目标采样精度,对所述第一数量的报点数据进行插值处理,得到第三数量的报点数据,所述第三数量大于所述第一数量;
    相应的,所述第一处理单元具体用于:根据所述帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
  11. 根据权利要求8-10任一项所述的装置,其特征在于,所述第一处理单元还用于:
    确定所述第二数量的报点数据所对应的用户动作,并将确定结果传输至所述第二处理单元,所述用户动作包括触摸动作或滑动动作。
  12. 根据权利要求8-11任一项所述的装置,其特征在于,所述检测单元还用于:
    接收所述第二处理单元发送的显示帧率;
    根据所述显示帧率确定所述预设报点上报率。
  13. 根据权利要求8-12任一项所述的装置,其特征在于,所述第二处理单元还用于:
    当所述检测单元在预设时间段内没有检测到所述触摸操作时,停止向所述第一处理单元发送所述帧同步信号。
  14. 根据权利要求8-13任一项所述的装置,其特征在于,所述第一处理单元还用于:
    对所述第二数量的报点数据进行低通滤波处理。
  15. 一种终端,其特征在于,所述终端包括:触摸屏、微处理器和应用处理器;
    所述触摸屏,用于生成报点数据,根据预设报点上报率上报所述报点数据至所述微处理器,所述报点数据中包括所述触摸屏被触摸时的触点信息;
    所述微处理器,用于接收所述报点数据;
    所述微处理器,还用于接收所述应用处理器发送的帧同步信号,所述帧同步信号为与显示帧率同步的周期信号;
    所述微处理器,还用于根据所述帧同步信号对预设时间内接收的第一数量的报点数据进行处理,得到第二数量的报点数据,并将所述第二数量的报点数据传输至所述应用处理器,所述第二数量小于所述第一数量;
    所述应用处理器,用于接收所述第二数量的报点数据,并根据所述第二数量的报点数据生成显示图像帧。
  16. 根据权利要求15所述的终端,其特征在于,所述微处理器具体用于:
    根据所述帧同步信号对所述预设时间内接收的第一数量的报点数据进行采样,得到第二数量的报点数据。
  17. 根据权利要求16所述的终端,其特征在于,所述微处理器还用于:
    确定所述第一数量的报点数据的精度是否小于目标采样精度;
    若确定所述第一数量的报点数据的精度小于所述目标采样精度,对所述第一数量的报点数据进行插值处理,得到第三数量的报点数据,所述第三数量大于所述第一数量;
    相应的,所述微处理器具体用于:根据所述帧同步信号对插值处理后的第三数量的报点数据进行采样,得到第二数量的报点数据。
  18. 根据权利要求15-17任一项所述的终端,其特征在于,所述微处理器还用于:
    确定所述第二数量的报点数据所对应的用户动作,并将确定结果传输至所述应用处理器,所述用户动作包括触摸动作或滑动动作。
  19. 根据权利要求15-18任一项所述的终端,其特征在于,所述触摸屏还用于:
    接收所述应用处理器发送的显示帧率;
    根据所述显示帧率确定所述预设报点上报率。
  20. 根据权利要求15-19任一项所述的终端,其特征在于,所述应用处理器还用于:
    当所述触摸屏在预设时间段内没有检测到所述触摸操作时,停止向所述微处理器发送所述帧同步信号。
  21. 根据权利要求15-20任一项所述的终端,其特征在于,所述微处理器还用于:
    对所述第二数量的报点数据进行低通滤波处理。
PCT/CN2017/085580 2016-05-26 2017-05-23 数据处理方法及装置 WO2017202314A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/304,563 US10678376B2 (en) 2016-05-26 2017-05-23 Data processing method, and apparatus
EP17802160.6A EP3454185A4 (en) 2016-05-26 2017-05-23 METHOD AND DEVICE FOR DATA PROCESSING

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610364875.9A CN107436700B (zh) 2016-05-26 2016-05-26 数据处理方法及装置
CN201610364875.9 2016-05-26

Publications (1)

Publication Number Publication Date
WO2017202314A1 true WO2017202314A1 (zh) 2017-11-30

Family

ID=60412092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085580 WO2017202314A1 (zh) 2016-05-26 2017-05-23 数据处理方法及装置

Country Status (4)

Country Link
US (1) US10678376B2 (zh)
EP (1) EP3454185A4 (zh)
CN (1) CN107436700B (zh)
WO (1) WO2017202314A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681439B (zh) * 2018-05-29 2021-04-27 北京维盛泰科科技有限公司 基于帧率控制的均匀显示方法
CN110069170B (zh) * 2019-05-13 2022-03-25 京东方科技集团股份有限公司 触摸屏报点率处理方法、装置、电子设备及可读存储介质
CN115167706A (zh) * 2019-05-17 2022-10-11 Oppo广东移动通信有限公司 控制方法、显示模组和电子设备
CN112835455A (zh) * 2019-11-22 2021-05-25 华为技术有限公司 一种预测手写笔绘制点的方法和设备
CN111083417B (zh) * 2019-12-10 2021-10-19 Oppo广东移动通信有限公司 图像处理方法及相关产品
WO2021159338A1 (zh) * 2020-02-12 2021-08-19 深圳元戎启行科技有限公司 图像采集方法、装置、控制装置、计算机设备、可读存储介质、图像采集设备和远程驾驶系统
CN113867517A (zh) * 2020-06-30 2021-12-31 北京小米移动软件有限公司 触控方法、装置、电子设备和存储介质
CN112764616B (zh) * 2021-01-22 2021-11-26 广州文石信息科技有限公司 一种电子墨水屏手写加速方法、装置、设备及存储介质
CN114520706B (zh) * 2022-01-17 2024-02-23 杭州电魂网络科技股份有限公司 一种帧同步检测方法、装置以及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473011A (zh) * 2013-09-03 2013-12-25 小米科技有限责任公司 一种移动终端性能检测方法、装置及移动终端
CN103744550A (zh) * 2013-11-08 2014-04-23 华为终端有限公司 一种触摸式输入方法及装置
CN103870054A (zh) * 2012-12-11 2014-06-18 乐金显示有限公司 具有集成触摸屏的显示装置及其驱动方法
CN104007875A (zh) * 2013-02-25 2014-08-27 三星电子株式会社 用于检测触摸的方法及其电子装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253785B (zh) * 2011-07-06 2013-04-24 华为终端有限公司 电阻式触摸屏的检测方法及检测装置
CN103186263A (zh) * 2011-12-27 2013-07-03 迅杰科技股份有限公司 报点装置及报点方法
KR101365818B1 (ko) * 2012-07-18 2014-02-21 엘지디스플레이 주식회사 터치 센싱 장치와 그 구동 방법
US20140118399A1 (en) * 2012-10-26 2014-05-01 Qualcomm Mems Technologies, Inc. Distortion correction for visual objects in motion
CN103105975B (zh) * 2013-02-26 2016-11-23 华为终端有限公司 触摸识别方法及装置
CN103207720B (zh) * 2013-03-29 2015-09-16 北京京东方光电科技有限公司 一种触控显示面板的控制方法及装置和显示装置
US9946366B2 (en) * 2013-06-03 2018-04-17 Apple Inc. Display, touch, and stylus synchronization
US20150022463A1 (en) 2013-07-17 2015-01-22 Lenovo (Singapore) Pte. Ltd. Synchronization of input surface data and display screen refresh
JP2016532234A (ja) 2013-10-02 2016-10-13 シナプティクス インコーポレイテッド 一体型装置のための同時の表示更新及び容量性感知
US9880649B2 (en) * 2014-09-29 2018-01-30 Apple Inc. Touch, pen and force sensor operation with variable refresh displays
CN104951135B (zh) * 2015-06-29 2018-09-14 努比亚技术有限公司 一种信息处理装置及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870054A (zh) * 2012-12-11 2014-06-18 乐金显示有限公司 具有集成触摸屏的显示装置及其驱动方法
CN104007875A (zh) * 2013-02-25 2014-08-27 三星电子株式会社 用于检测触摸的方法及其电子装置
CN103473011A (zh) * 2013-09-03 2013-12-25 小米科技有限责任公司 一种移动终端性能检测方法、装置及移动终端
CN103744550A (zh) * 2013-11-08 2014-04-23 华为终端有限公司 一种触摸式输入方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3454185A4 *

Also Published As

Publication number Publication date
US10678376B2 (en) 2020-06-09
EP3454185A4 (en) 2019-04-17
US20190302985A1 (en) 2019-10-03
CN107436700B (zh) 2020-04-14
CN107436700A (zh) 2017-12-05
EP3454185A1 (en) 2019-03-13

Similar Documents

Publication Publication Date Title
WO2017202314A1 (zh) 数据处理方法及装置
JP7337968B2 (ja) 垂直同期信号に基づいた画像処理の方法及び電子機器
WO2021032097A1 (zh) 一种隔空手势的交互方法及电子设备
US9961251B2 (en) Methods for adjusting control parameters on an image capture device
US20200005830A1 (en) Calibrating Media Playback Channels for Synchronized Presentation
RU2640741C2 (ru) Способ и устройство для переключения режима отображения
WO2016045579A1 (zh) 一种应用程序交互控制方法、装置及终端
RU2667027C2 (ru) Способ и устройство категоризации видео
US20180372836A1 (en) Floor Determining Method and System, and Related Device
US10452199B2 (en) Denoising touch gesture input
JP6371485B2 (ja) エアマウスリモコンの最適化方法、装置、端末機器、プログラム、及び記録媒体
CN107273130A (zh) 加速界面绘制的方法、装置和终端
EP3779968A1 (en) Audio processing
US20190051147A1 (en) Remote control method, apparatus, terminal device, and computer readable storage medium
JP2015135667A (ja) 端末上で音声制御オペレーションを実行するための方法および装置
RU2640746C9 (ru) Способ и устройство взаимного изменения положений значков
WO2015131590A1 (zh) 一种控制黑屏手势处理的方法及终端
CN104881225A (zh) 一种调节条的控制方法和装置
WO2016026293A1 (zh) 消息发送方法及装置
US10394442B2 (en) Adjustment of user interface elements based on user accuracy and content consumption
CN107340996A (zh) 屏幕点亮方法及装置
WO2017088238A1 (zh) 触摸手势确定方法及装置
EP3282680B1 (en) Blowing action-based method for operating mobile terminal and mobile terminal
EP3246805B1 (en) Gesture operation response method and device
US10757246B2 (en) Method and apparatus for performing at least one operation based on devices context

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17802160

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017802160

Country of ref document: EP

Effective date: 20181206