CN110795298B - Touch display delay determining method and device, storage medium and electronic device - Google Patents

Touch display delay determining method and device, storage medium and electronic device Download PDF

Info

Publication number
CN110795298B
CN110795298B CN201911077684.4A CN201911077684A CN110795298B CN 110795298 B CN110795298 B CN 110795298B CN 201911077684 A CN201911077684 A CN 201911077684A CN 110795298 B CN110795298 B CN 110795298B
Authority
CN
China
Prior art keywords
touch
moment
control
component
screen
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911077684.4A
Other languages
Chinese (zh)
Other versions
CN110795298A (en
Inventor
袁伟才
贺志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911077684.4A priority Critical patent/CN110795298B/en
Publication of CN110795298A publication Critical patent/CN110795298A/en
Application granted granted Critical
Publication of CN110795298B publication Critical patent/CN110795298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • 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
    • 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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Abstract

The invention discloses a method and a device for determining touch display delay, a storage medium and an electronic device. Wherein, the method comprises the following steps: the touch control display delay method comprises the steps of obtaining a first trigger signal at a first moment and a second trigger signal at a second moment for determining the touch control screen display delay according to a first trigger signal generated when a metal probe leaves a touch control screen and a second trigger signal for detecting that the touch control screen is bright when the metal probe leaves the touch control screen, and determining the touch control display delay of the touch control screen according to a time difference between the first moment and the second moment. Therefore, the technical effects of acquiring the first touch signal when the touch screen is away from the touch screen and acquiring the second touch signal when the touch screen becomes bright are achieved, and the technical problem that in the prior art, the time delay precision from touch testing to display completion is low is solved.

Description

Touch display delay determining method and device, storage medium and electronic device
Technical Field
The invention relates to the field of intelligent equipment, in particular to a method and a device for determining touch display delay, a storage medium and an electronic device.
Background
More and more devices such as mobile phones playing games through capacitive touch screens have a delay from touch to game picture updating which is a critical parameter for game experience, so related test optimization is necessary in the development stage.
At present, many common test methods are complicated, such as a high-speed camera shooting method, or have large errors. In order to test the time delay from touch to display, it is first necessary to measure the time when touch occurs, i.e. the start time. In order to measure the starting time, a travel switch method and an acceleration sensor method are commonly used, the methods are not accurate enough, travel delay exists in the travel switch, acquisition delay exists in the acceleration sensor, and the travel delay of the mechanical arm exists.
In addition, the current mainstream test method is to click the touch screen by using a mechanical arm provided with a capacitance probe, and if the operation is not proper, the touch screen is easily damaged by stress.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining touch display delay, a storage medium and an electronic device, and at least solves the technical problem that in the prior art, the precision of the delay from touch test to display completion is low.
According to an aspect of the embodiments of the present invention, a method for determining a touch display delay is provided, including: the control component outputs a first control signal to a touch execution component, wherein the touch execution component is used for responding to the first control signal and pressing on a touch screen for a long time; the control component outputs a second control signal to the touch execution component, wherein the touch execution component is used for responding to the second control signal and leaving the touch screen; the control component acquires a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves the touch screen, the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to illuminate, and the screen flash acquisition component is used for generating the second trigger signal when sensing that the touch screen illuminates; and under the condition that the first trigger signal and the second trigger signal are obtained, determining the time difference between the first moment and the second moment as the touch display delay of the touch screen.
According to another aspect of the embodiments of the present invention, there is also provided a device for determining touch display delay, including: the touch control system comprises a control component, a touch control execution component and a screen flash acquisition component, wherein the control component is connected with the touch control execution component and the screen flash acquisition component and is used for outputting a first control signal to the touch control execution component and outputting a second control signal to the touch control execution component; acquiring a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves the touch screen, and the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to be bright; under the condition that the first trigger signal and the second trigger signal are obtained, determining the time difference between the first moment and the second moment as the touch display delay of the touch screen; the touch control execution component is used for responding to the first control signal to press on the touch control screen for a long time and responding to the second control signal to leave the touch control screen at the first moment; and the screen flash acquisition component is used for generating the second trigger signal at the second moment when the touch screen is sensed to be bright at the second moment.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method for determining the touch display delay time when the computer program runs.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the touch display delay through the computer program.
In the embodiment of the invention, a first control signal is output to a touch control execution component through a control component, wherein the touch control execution component is used for responding to the first control signal and pressing on a touch control screen for a long time; the control component outputs a second control signal to the touch control execution component, wherein the touch control execution component is used for responding to the second control signal and leaving the touch control screen; the control component acquires a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves the touch screen, the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to be bright, and the screen flash acquisition component is used for generating the second trigger signal when sensing that the touch screen is bright; under the condition of acquiring the first trigger signal and the second trigger signal, the time difference between the first moment and the second moment is determined as the touch display delay of the touch screen, and the purposes of acquiring the first trigger signal generated when the metal probe leaves the touch screen and acquiring the second trigger signal for detecting the bright screen of the touch screen when the metal probe leaves the touch screen are achieved, so that the technical effects of acquiring the first touch signal at the moment of leaving the touch screen and acquiring the second touch signal at the moment when the touch screen becomes bright are achieved, and the technical problem that the precision of the delay from the touch test to the display completion is low in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flowchart of a method for determining touch display latency according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a touch display delay determining apparatus according to an embodiment of the present invention;
FIG. 3 is a block diagram of a touch execution unit according to a preferred embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a touch display delay determining apparatus according to a preferred embodiment of the present invention;
FIG. 5 is a schematic diagram of a photodiode detection signal according to a preferred embodiment of the present invention;
FIG. 6 is a schematic diagram of a time delay analysis in accordance with a preferred embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
There is also provided, in accordance with an embodiment of the present invention, a method embodiment of a method for determining touch display latency, where the steps illustrated in the flowchart of the accompanying drawings may be implemented in a computer system, such as a set of computer-executable instructions, and where a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that illustrated or described herein.
The method for determining the touch display delay according to the embodiment of the invention will be described in detail below.
Fig. 1 is a flowchart of a method for determining touch display delay according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
in step S102, the control unit outputs a first control signal to the touch execution unit, wherein the touch execution unit is configured to respond to the first control signal and press the touch screen for a long time.
In step S104, the control unit outputs a second control signal to the touch execution unit, wherein the touch execution unit is configured to leave the touch screen in response to the second control signal.
Step S106, the control component obtains a first trigger signal generated by the touch execution component at a first time, and a second trigger signal generated by the screen flash collection component at a second time, where the first time is a time when the touch execution component leaves the touch screen, the second time is a time when the touch execution component leaves the touch screen and the touch screen is lighted, and the screen flash collection component is configured to generate the second trigger signal when sensing that the touch screen is lighted.
Step S108, under the condition that the first trigger signal and the second trigger signal are obtained, determining the time difference between the first moment and the second moment as the touch display delay of the touch screen.
Through the steps, the first trigger signal at the first moment and the second trigger signal at the second moment for determining the display time delay of the touch screen are obtained according to the purpose of the first trigger signal generated when the metal probe leaves the touch screen and the purpose of obtaining the second trigger signal for detecting the bright screen of the touch screen when the metal probe leaves the touch screen, and the touch display time delay of the touch screen is determined according to the time difference between the first moment and the second moment. Therefore, the technical effects of acquiring the first touch signal when the touch screen is away from the touch screen and acquiring the second touch signal when the touch screen becomes bright are achieved, and the technical problem that in the prior art, the time delay precision from touch testing to display completion is low is solved.
It should be noted that the touch screen may be a touch screen of a terminal, for example, a mobile phone with a touch screen. And then according to the method, the time from the response touch operation of the touch screen mobile phone to the brightening of the touch screen can be detected. Further, data is provided that improves the duration. For example, currently, if it is required to detect that the time period from the touch operation of the mobile phone to the time period when the touch screen becomes bright is 20 seconds, the touch display delay can be further improved according to the time period.
In the scheme provided in step S102, the touch execution component is disposed on the touch screen, and is configured to receive the first control signal when the control component receives the first control signal, and in a case of receiving the first control signal, the touch execution component may be in contact with the touch screen, where the touch execution space is in a state of long pressing on the touch screen, and the state of long pressing of the touch execution control on the touch screen is a starting state determined by the touch display delay. For example, when the touch display delay time is tested, the touch execution component is first contacted with the touch screen.
In the scheme provided in step S104, the touch execution component is disposed on the touch screen and configured to receive the second control signal when the control component receives the second control signal, and in a case that the second control signal is received, the touch execution component may leave the touch screen, so as to obtain the first trigger signal at the first time. For example, the first trigger signal is acquired at 2 o' clock, 10 minutes, and 30 seconds.
In the scheme provided in step S106, when the touch execution component leaves the touch screen, the touch screen may turn from a dark screen to a bright screen, and at the time when the touch screen turns to bright, the screen flash acquisition component acquires second touch information at a second time, for example, the second trigger signal is acquired at 2 o 10 min 50 sec.
It should be noted that, the touch execution component may include a metal probe, and the metal probe is used for responding to a first control signal and pressing on the touch screen for a long time, where the touch execution component leaves the touch screen at a first time in response to a second control signal and generates a first trigger signal at the first time, and the method may include: the metal probe leaves the touch screen at a first moment in response to the second control signal, and changes the level of a first input pin of the control component from a first level to a second level at the first moment, wherein the first trigger signal comprises a first jump signal from the first level to the second level.
In practical applications, the first transition signal from the first level to the second level may include: the transition from low level to high level may be a transition from high level to low level. That is, the first level and the second level satisfy that there is a level difference.
The obtaining, by the control component, a first trigger signal generated by the touch execution component at a first time may include: the control section detects the first transition signal generated at the first timing by means of an interrupt.
Further, under the condition that the first trigger signal and the second trigger signal are obtained, the first time and the second time are obtained simultaneously, and the time length of touch display delay is determined according to the difference value of the first time and the second time. For example, the first time when the touch execution component leaves the touch screen is 2 o 'clock, 10 min and 30 sec, the time when the screen flash acquisition component acquires that the touch screen is lightened is 2 o' clock, 10 min and 50 sec, and the time for responding to the touch of the touch screen is determined to be 20 sec.
As an optional embodiment, after the control unit outputs the second control signal to the touch execution unit, the method may further include: the touch control execution component responds to the second control signal and leaves the touch control screen at a first moment, and generates a first trigger signal at the first moment; the screen flash acquisition component senses that the touch screen is on at a second moment and generates a second trigger signal at the second moment.
As an optional embodiment, the screen flash collecting unit includes a photosensitive device, wherein the screen flash collecting unit senses that the touch screen is on at the second time, and generates the second trigger signal at the second time, including: when the touch screen is on at a second moment, the photosensitive device changes the level of a second input pin of the control component from a third level to a fourth level at the second moment, wherein the second trigger signal comprises a second jump signal from the third level to the fourth level.
It should be noted that the third to fourth level second transition signals may include: the transition from low level to high level may be a transition from high level to low level. That is, the third level and the fourth level satisfy that there is a level difference.
The step of acquiring, by the control component, the second trigger signal generated by the screen flash acquisition component at the second time may include: the control section detects the second transition signal generated at the second timing by means of an interrupt.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a touch display latency determining apparatus for implementing the touch display latency determining method. As shown in fig. 2, the apparatus includes: a control unit 21, a touch control execution unit 23, and a screen flash acquisition unit 25, wherein,
the control component 21 is connected with the touch execution component 23 and the screen flash acquisition component 25, and is used for outputting a first control signal to the touch execution component 23 and outputting a second control signal to the touch execution component 23; acquiring a first trigger signal generated by the touch execution component 23 at a first moment and a second trigger signal generated by the screen flash acquisition component 25 at a second moment, wherein the first moment is a moment when the touch execution component 23 leaves the touch screen, and the second moment is a moment when the touch execution component 23 leaves the touch screen and is triggered by the touch screen to illuminate; and under the condition of acquiring the first trigger signal and the second trigger signal, determining the time difference between the first moment and the second moment as the touch display delay of the touch screen.
And the touch control executing part 23 is used for responding to the first control signal to press on the touch control screen for a long time and responding to the second control signal to leave the touch control screen at the first moment.
And the screen flash acquisition component 25 is configured to generate a second trigger signal at a second moment when the touch screen is sensed to be bright at the second moment.
By the device, the first trigger signal at the first moment and the second trigger signal at the second moment for determining the display time delay of the touch screen are obtained according to the purpose of the first trigger signal generated when the metal probe leaves the touch screen and the purpose of obtaining the second trigger signal for detecting the bright screen of the touch screen when the metal probe leaves the touch screen, and the touch display time delay of the touch screen is determined according to the time difference between the first moment and the second moment. Therefore, the technical effects of acquiring the first touch signal when the touch screen is away from the touch screen and acquiring the second touch signal when the touch screen becomes bright are achieved, and the technical problem that in the prior art, the time delay precision from touch testing to display completion is low is solved.
As an alternative embodiment, the touch execution unit 23 may include: a conductive layer material configured to be placed on a touch screen; the metal probe is connected with the control part, and is contacted with the conducting layer material under the control of the first control signal so as to form a touch capacitor on the touch screen; the metal probe leaves the conducting layer material at a first moment under the control of the second control signal so as to cancel the formation of a touch capacitor on the touch screen and generate a first trigger signal at the first moment; and the position control device is connected with the metal probe and the control part, wherein the position control device controls the metal probe to be in contact with the conducting layer material when acquiring a first control signal, and controls the metal probe to be separated from the conducting layer material at a first moment when acquiring a second control signal.
The conductive layer material may include, but is not limited to, conductive cloth, conductive foam, and the like.
As an alternative embodiment, the metal probe may include: the first probe is connected with a first input pin of the control part, wherein when the metal probe is contacted with the conducting layer material, the first probe and the second probe form electric connection through the conducting layer material, and the level of the first input pin is a first level; when the metal probe leaves the conductive layer material, the first probe is electrically disconnected from the second probe, the level of the first input pin is changed from a first level to a second level at a first moment, and the first trigger signal comprises a first jump signal from the first level to the second level.
As an alternative embodiment, the position control device may include: the armature is connected with the metal probe; the two input ends of the electromagnet are connected with the control component, and when the two input ends acquire a first control signal, a coil on the electromagnet is not electrified; when the two input ends acquire a second control signal, the coil on the electromagnet is electrified to absorb the armature so as to drive the metal probe to leave the conducting layer material.
As an alternative embodiment, the screen flash collecting component 25 may include: the photosensitive element is arranged above the touch screen and comprises an output end, the output end is connected with a second input pin of the control component, when the photosensitive element does not sense that the touch screen is bright, the output end controls the level of the second input pin to be a third level, when the photosensitive element senses that the touch screen is bright at a second moment, the output end changes the level of the second input pin from the third level to a fourth level at the second moment, and the second trigger signal comprises a second jump signal from the third level to the fourth level.
It should be noted that the screen flash collecting unit 25 may further include: and the light shield is covered outside the photosensitive element.
The scheme in the above embodiment needs the screen to flash the collection part and gather the moment that the screen is from the black screen to the bright screen, therefore, the screen that needs flashes collection part and is in dark test environment, or flashes collection part at the screen and sets up the lens hood for be in dark environment with the light sensor, the lens hood is placed on touch screen promptly, and forms the enclosure space with touch screen, this enclosure space keeps dark state, it can remain the light sensor of predetermined distance with touch screen in this space. Wherein, this photosensitive element includes: a photodiode, or a phototransistor. Namely, the photosensitive element detects the moment when the touch screen becomes bright in a dark space.
The invention also provides a preferred embodiment, which provides a touch display delay test method of the capacitive touch screen.
Referring to fig. 3, a schematic block diagram of a preferred embodiment of the present invention is described below with reference to fig. 3, wherein the principle of the test method of the preferred embodiment is as follows:
1, the whole test system is divided into three parts, namely a control panel, a screen flash acquisition unit (a light shield and a photosensitive diode) and a touch control execution unit; as shown in fig. 4, a structure of the touch execution unit is shown.
As shown in fig. 4, the touch execution unit includes: the device comprises an electromagnet, an armature, two metal probes and conductive cloth.
2, the terminal PC can supply power to the control board through a USB interface (VCC5V, USB +, USB-, GND), read test data in the MCU on the control board and send a control command to the MCU;
and 3, a control signal DO _1 of the MCU is used for controlling the electromagnet coil to be electrified, the default is low level, namely the electromagnet is not electrified, the metal probe below is in contact with the conductive foam, the two probes are in short circuit, and a DI _2 input signal of the MCU is low level. At this time, the touch screen has an external touch capacitor (the metal probe and the fixed bracket and the corresponding finger capacitor) which is pressed on the touch screen for a long time.
And 4, the MCU controls the DO _1 to output a high level, the electromagnet coil is electrified to generate magnetic force, the metal probes are quickly attracted, when the two probes leave the conductive foam, the finger capacitor attached to the touch screen drops, meanwhile, the two metal probes are opened, the DI _2 signal input of the MCU is the high level, and the MCU detects the rising edge of the DI _2 in an interruption mode, so that the moment of touch failure can be known and recorded as T0. Cell-phone or other equipment are equipped with the test APP, and when the APP detected that the finger electric capacity that long pressed drops, the display screen was become white screen by the black screen, and photosensitive diode detects white screen back, and DI _1 becomes the low level by original high level. The MCU detects the falling edge of DI _1 in an interrupt mode, and once a valid falling edge signal is detected, it proves that the screen has completed displaying from black screen to white screen, and records the time T1. As shown in fig. 5, the photodiode detects a signal in a schematic diagram.
5, T1-T0 is the overall time delay that needs to be tested. Fig. 6 shows a schematic diagram of the time delay analysis. As shown in fig. 6, the difference between the touch failure time T0 and the display update completion time T1, T1, and T0 is the time duration of the delay. The touch failure time T0 is a first time when the touch execution unit receives the second touch signal and leaves the touch screen, and the first touch signal is generated at the first time. The update completion time T1 is a second time when the screen flash collecting unit detects that the screen is bright, and a second touch signal is generated at the second time.
With the preferred embodiment described above, error analysis: the MCU program is simple, and the delay of the MCU can be smaller than 10us by adopting the edge change of DI _1 and DI _2 in an interrupt mode. The display acquisition end adopts a pure semiconductor device, the inversion from black screen to white screen is acquired, the delay is in ns level and can be ignored. Thereby ensuring the precision (<10us) of the acquisition time delay on the whole link.
After the external interrupt signal is generated, the MCU can generally acquire the interrupt signal in at most 2-4 cycles, and for a 51-chip microcomputer with a clock frequency of 12M, the clock cycle is 1/12us, i.e., one cycle is 1us, i.e., at most 4 us. This delay can be made smaller if a higher frequency MCU is used.
Therefore, the preferred embodiment can ensure that the touch event time detected by the controller is the screen triggering time without time delay, improve the testing precision from touch to display time delay, realize full-automatic testing, and improve the working efficiency, the operation consistency and the safety. The damage to the touch screen caused by improper operation due to manual operation is avoided.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the method for determining touch display latency, as shown in fig. 7, the electronic device includes a memory 702 and a processor 704, the memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, the control component outputs a first control signal to the touch control execution component, wherein the touch control execution component is used for responding the first control signal and pressing the touch control screen for a long time;
s2, the control unit outputs a second control signal to the touch control execution unit, wherein the touch control execution unit is used for responding to the second control signal and leaving the touch control screen;
s3, the control component acquires a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves the touch screen, the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to be bright, and the screen flash acquisition component is used for generating the second trigger signal when sensing that the touch screen is bright;
and S4, determining the time difference between the first time and the second time as the touch display delay of the touch screen under the condition that the first trigger signal and the second trigger signal are acquired.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for determining touch display delay in the embodiments of the present invention, and the processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, the method for determining touch display delay is implemented. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 can further include memory located remotely from the processor 704, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be used for, but not limited to, a first control signal, a second control signal, a first time, a second time, and other information. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, the control unit 21, the touch execution unit 23, and the screen flash acquisition unit 25 of the device for determining the touch display delay time. In addition, the touch display delay determination apparatus may further include, but is not limited to, other module units in the touch display delay determination apparatus, which is not described in detail in this example.
Optionally, the transmitting device 706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 706 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, the control component outputs a first control signal to the touch control execution component, wherein the touch control execution component is used for responding the first control signal and pressing the touch control screen for a long time;
s2, the control unit outputs a second control signal to the touch control execution unit, wherein the touch control execution unit is used for responding to the second control signal and leaving the touch control screen;
s3, the control component acquires a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves the touch screen, the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to be bright, and the screen flash acquisition component is used for generating the second trigger signal when sensing that the touch screen is bright;
and S4, determining the time difference between the first time and the second time as the touch display delay of the touch screen under the condition that the first trigger signal and the second trigger signal are acquired.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for determining touch display delay time is characterized by comprising the following steps:
the control component outputs a first control signal to a touch execution component, wherein the touch execution component is used for responding to the first control signal and pressing on a touch screen for a long time;
the control component outputs a second control signal to the touch execution component, wherein the touch execution component is used for responding to the second control signal and leaving the touch screen;
the control component acquires a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves the touch screen, the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to illuminate, and the screen flash acquisition component is used for generating the second trigger signal when sensing that the touch screen illuminates;
and under the condition that the first trigger signal and the second trigger signal are obtained, determining the time difference between the first moment and the second moment as the touch display delay of the touch screen.
2. The method of claim 1, wherein after the control component outputs a second control signal to the touch-control execution component, the method further comprises:
the touch control execution component responds to the second control signal to leave the touch control screen at the first moment and generate the first trigger signal at the first moment;
and the screen flash acquisition component senses that the touch screen is on at the second moment, and generates the second trigger signal at the second moment.
3. The method of claim 2, wherein the touch-enabled execution component comprises a metal probe configured to press on the touch screen in response to the first control signal, and wherein the touch-enabled execution component leaves the touch screen at the first time in response to the second control signal and generates the first trigger signal at the first time, comprising:
the metal probe leaves the touch screen at the first moment in response to the second control signal, and changes the level of a first input pin of the control component from a first level to a second level at the first moment, wherein the first trigger signal comprises a first jump signal from the first level to the second level.
4. The method according to claim 3, wherein the acquiring, by the control component, the first trigger signal generated by the touch execution component at the first time includes:
the control section detects the first transition signal generated at the first timing by way of an interrupt.
5. The method of claim 2, wherein the screen flash acquisition component comprises a photosensitive device, wherein the screen flash acquisition component senses that the touch screen is on at the second time and generates the second trigger signal at the second time, and comprises:
when the touch screen is turned on at the second moment, the photosensitive device changes the level of a second input pin of the control component from a third level to a fourth level at the second moment, wherein the second trigger signal comprises a second jump signal from the third level to the fourth level.
6. The method of claim 5, wherein the controlling component acquiring a second trigger signal generated by the screen flash collecting component at a second time comprises:
the control section detects the second transition signal generated at the second timing by way of an interrupt.
7. An apparatus for determining touch display latency, comprising: a control component, a touch control execution component and a screen flash acquisition component, wherein,
the control component is connected with the touch control execution component and the screen flash acquisition component and used for outputting a first control signal to the touch control execution component and outputting a second control signal to the touch control execution component; acquiring a first trigger signal generated by the touch execution component at a first moment and a second trigger signal generated by the screen flash acquisition component at a second moment, wherein the first moment is the moment when the touch execution component leaves a touch screen, and the second moment is the moment when the touch execution component leaves the touch screen and is triggered by the touch screen to be bright; under the condition that the first trigger signal and the second trigger signal are obtained, determining the time difference between the first moment and the second moment as the touch display delay of the touch screen;
the touch control execution component is used for responding to the first control signal to press on the touch control screen for a long time and responding to the second control signal to leave the touch control screen at the first moment;
and the screen flash acquisition component is used for generating the second trigger signal at the second moment when the touch screen is sensed to be bright at the second moment.
8. The apparatus of claim 7, wherein the touch execution component comprises:
a conductive layer material configured to be placed on the touch screen;
the metal probe is connected with the control component, and is in contact with the conducting layer material under the control of the first control signal so as to form a touch capacitor on the touch screen; the metal probe leaves the conductive layer material at the first moment under the control of the second control signal so as to cancel the formation of a touch capacitor on the touch screen and generate the first trigger signal at the first moment;
and the position control device is connected with the metal probe and the control component, wherein the position control device controls the metal probe to be in contact with the conducting layer material when the first control signal is acquired, and controls the metal probe to be separated from the conducting layer material at the first moment when the second control signal is acquired.
9. The apparatus of claim 8, wherein the metal probe comprises: the first probe is connected with a first input pin of the control part, when the metal probe is contacted with the conducting layer material, the first probe and the second probe are electrically connected through the conducting layer material, and the level of the first input pin is a first level; when the metal probe leaves the conductive layer material, the first probe is electrically disconnected from the second probe, the level of the first input pin is changed from the first level to a second level at the first moment, and the first trigger signal comprises a first jump signal from the first level to the second level.
10. The apparatus of claim 8, wherein the position control means comprises:
the armature is connected with the metal probe;
the two input ends of the electromagnet are connected with the control component, and when the two input ends acquire the first control signal, a coil on the electromagnet is not electrified; when the two input ends acquire the second control signal, the coil on the electromagnet is electrified to absorb the armature so as to drive the metal probe to leave the conductive layer material.
11. The apparatus of claim 7, wherein the screen flash collection component comprises:
the photosensitive element is arranged to be placed above the touch screen and comprises an output end, the output end is connected with a second input pin of the control component, when the photosensitive element does not sense that the touch screen is bright, the output end controls the level of the second input pin to be a third level, when the photosensitive element senses that the touch screen is bright at the second moment, the output end changes the level of the second input pin from the third level to a fourth level at the second moment, and the second trigger signal comprises a second jump signal from the third level to the fourth level.
12. The apparatus of claim 11, wherein the screen flash collection component comprises:
and the light shield is covered outside the photosensitive element.
13. The apparatus of claim 11, wherein the photosensitive element comprises: a photodiode, or a phototransistor.
14. A storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 6.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN201911077684.4A 2019-11-06 2019-11-06 Touch display delay determining method and device, storage medium and electronic device Active CN110795298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911077684.4A CN110795298B (en) 2019-11-06 2019-11-06 Touch display delay determining method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911077684.4A CN110795298B (en) 2019-11-06 2019-11-06 Touch display delay determining method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110795298A CN110795298A (en) 2020-02-14
CN110795298B true CN110795298B (en) 2021-05-11

Family

ID=69442921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911077684.4A Active CN110795298B (en) 2019-11-06 2019-11-06 Touch display delay determining method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110795298B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112843677B (en) * 2021-02-08 2023-07-11 脸萌有限公司 System delay determining method, device, equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9965094B2 (en) * 2011-01-24 2018-05-08 Microsoft Technology Licensing, Llc Contact geometry tests
US10261611B2 (en) * 2012-12-03 2019-04-16 Apkudo, Llc System and method for objectively measuring user experience of touch screen based devices
US20150022482A1 (en) * 2013-07-19 2015-01-22 International Business Machines Corporation Multi-touch management for touch screen displays
US20150138162A1 (en) * 2013-10-07 2015-05-21 Tactual Labs Co. Latency measuring and testing system and method
US9841839B2 (en) * 2013-10-07 2017-12-12 Tactual Labs Co. System for measuring latency on a touch device
CN105067903B (en) * 2015-07-16 2017-10-24 中国电子科技集团公司第五十五研究所 A kind of method and apparatus for measuring the capacitive touch screen touch-responsive time
CN105468523B (en) * 2015-11-20 2018-11-27 广东欧珀移动通信有限公司 A kind of automated testing method and device of mobile terminal response time
CN107423212B (en) * 2017-03-17 2020-12-01 深圳普瑞赛思检测技术有限公司 Method and device for evaluating response delay of screen of virtual reality equipment
CN107656638B (en) * 2017-09-13 2020-10-30 苏州国科视清医疗科技有限公司 Fatigue detection delay compensation test system and method

Also Published As

Publication number Publication date
CN110795298A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN107037352B (en) Capacitive touch key chip detection calibration system and method
US10298045B2 (en) Electronic device for checking battery abnormality and control method thereof
US10216602B2 (en) Tool to measure the latency of touchscreen devices
CN105573522B (en) A kind of operating method and mobile terminal of mobile terminal
CN105549858A (en) Display method and user terminal
CN104318882A (en) Display module testing equipment
CN105890624B (en) Calibration method and electronic equipment
CN105339877A (en) Finger detection on touch screens for mobile devices
CN105373479A (en) Automatic test method and device of memory leakage and mobile terminal
CN103916507A (en) Testing method and system for smart wristband
CN110795298B (en) Touch display delay determining method and device, storage medium and electronic device
CN105975391A (en) Restart testing method and device and mobile terminal
CN105334966A (en) Error operation preventing method and device and terminal device
CN108139899B (en) Terminal device and method for controlling charging
CN104035553A (en) Systems and methods for indicating that an interface is being touched
CN105031905A (en) Movement information display method and device
CN111128139A (en) Non-invasive voice test method and device
CN113741300B (en) Information marking system
US20130321434A1 (en) Electronic apparatus and method for switching display mode
CN107632266B (en) Mobile terminal, test system and test method of mobile terminal
CN107608553A (en) A kind of touch area calibration method and electronic equipment
CN108268091B (en) A kind of interface protector, mobile terminal and method
US20150001057A1 (en) Touch-sensitive push-button and electronic device using the same
CN104994242A (en) Adjusting structure and adjusting method of screen brightness of mobile phone
KR20210042670A (en) Electronic device, method for operation in the electronic device and non-transitory computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Yuan Weicai

Inventor after: He Zhijun

Inventor before: He Zhijun

CB03 Change of inventor or designer information
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40022171

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant