Test method and related device, computer equipment and readable storage medium
Through the touch detection circuit, the simulated touch operation is automatically performed and the brightness changes are detected, and the touch response of the display screen is time-consuming, which solves the problems of manual testing error and low efficiency in the prior art, and realizes high-precision and efficient automated testing. .
Patent Information
- Application Number
- CN202310863134.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2025-01-14
AI Technical Summary
The method of testing time-consuming response of display screen touch in the prior art requires manual participation, with subjective errors and inefficiency, which affects the test accuracy.
Using a testing method and device, the touch detection circuit automatically sends the touch test signal and the brightness detection signal to the display screen, record the time when the touch switch assembly is switched to the on state and the response time of the brightness detection assembly, and calculate the display screen Touch response is time-consuming.
It realizes time-consuming automated testing of touch response to display screens, improves test accuracy and efficiency, reduces manual participation, and has strong applicability.
Smart Images

Figure CN119311485A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a testing method and related devices, computer equipment and readable storage media. Background Art
[0002] The touch display device can respond to the touch of a finger or other receivable contact according to a preset program, and generate a display response to achieve human-computer interaction. The time it takes for a touch display device to generate a display response from the occurrence of a touch is called the touch response time. Since the touch response time is an important indicator reflecting the interactive experience performance of the touch display device, the touch response time of the touch display device can be tested during the production process to determine the performance of the touch display device.
[0003] In the prior art, a high-speed camera is used to shoot a video of a touch display device from the time when a touch occurs to the time when a display response occurs, and the video is played back at a slow speed to obtain the time length from the time when a touch occurs to the time when a display response occurs, thereby determining the time taken for the touch response. In practice, it is found that since this method requires manual determination of the time when a touch occurs and a display response occurs in the video, it leads to large subjective errors, affects the test accuracy, and the test efficiency of manual operation is low. Summary of the invention
[0004] The embodiments of the present application provide a testing method and related devices, computer equipment and readable storage media, which can realize automated testing of display screens without the need for human intervention, improve the time-consuming testing accuracy and efficiency of touch response of display screens, and have strong applicability.
[0005] In a first aspect, the present application provides a testing method, the method comprising:
[0006] Obtaining test parameters for a display screen of a terminal device, the test parameters including the number of tests;
[0007] For the i-th test, a touch test signal is sent to the touch switch component in the touch detection circuit, and a brightness detection signal is sent to the brightness detection component in the touch detection circuit; the touch test signal is used to trigger the touch switch component to switch to an on state, and the brightness detection signal is used to trigger the brightness detection component to detect the screen brightness value of the display screen; i is an integer less than or equal to N, and N is the number of the above tests;
[0008] According to the touch switch component being in the on state, the touch execution component is triggered to extract the charge of the touch surface of the display screen, so as to perform a simulated touch operation on the display screen; the touch execution component is located on the touch surface of the display screen;
[0009] Generating the touch time of the display screen in the i-th test according to the time when the touch switch component is switched to the on state;
[0010] If the test result returned by the brightness detection component is received, it is determined that the display screen has responded to the simulated touch operation, and the response time of the display screen in the i-th test is generated according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold;
[0011] Until the touch time and response time respectively corresponding to the N tests of the display screen are obtained, the touch response time of the display screen is determined according to the touch time and response time respectively corresponding to the N tests of the display screen.
[0012] In a second aspect, the present application further provides a touch detection circuit, the circuit comprising a control component, a touch switch component, a touch execution component and a brightness detection component;
[0013] The control component is connected to the touch switch component and the brightness detection component respectively, the touch switch component is connected to the touch execution component, and the touch execution component and the brightness detection component are located on the touch surface of the display screen of the terminal device;
[0014] The control component is used to send a touch test signal to the touch switch component to trigger the touch switch component to switch to the on state; and send a brightness detection signal to the brightness detection component to trigger the brightness detection component to detect the screen brightness value of the display screen;
[0015] The touch execution component is used to extract the charge in the display screen when the touch switch component is switched to the on state, so as to perform a simulated touch operation on the display screen;
[0016] The brightness detection component is used to detect the screen brightness value of the display screen, and when the display screen responds to the simulated touch operation, return the test result to the control component; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold;
[0017] The control component is also used to generate a touch time according to the time when the touch switch component switches to the on state, generate a response time according to the time when the test result is received, and obtain the touch response time of the display screen according to the touch time and the response time.
[0018] In a possible implementation, the touch switch assembly includes a first switch, a second switch and an electromagnetic induction unit;
[0019] The electromagnetic induction unit is connected to the first port of the control component, and the electromagnetic induction unit is coupled to the first switch and the second switch; one end of the first switch is connected to the second port of the control component, and the other end of the first switch is connected to the first ground terminal; one end of the second switch is connected to the touch execution component, and the other end of the first switch is connected to the second ground terminal;
[0020] The electromagnetic induction unit is used to trigger the first switch and the second switch to switch to the on state according to the touch test signal;
[0021] The first switch is used to connect the second port of the control component to the first ground terminal when switched to the on state, so as to generate a conduction indication signal and send it to the second port of the control component; the control component is used to determine that the touch switch component is switched to the on state when receiving the conduction indication signal;
[0022] The second switch is used to connect the touch execution component to the second ground terminal when switched to the on state, so as to export the charge in the display screen to the second ground terminal, so as to perform the analog touch operation on the display screen.
[0023] In a possible implementation, the brightness detection component includes a photosensitive sensor;
[0024] The signal end of the photosensor is connected to the third port of the control component, the power end of the photosensor is connected to the fourth port of the control component, and the photosensor is located in the central area of the display screen;
[0025] The above-mentioned photosensor is used to receive the brightness detection signal sent by the fourth port of the above-mentioned control component through the above-mentioned power supply terminal, and detect the screen brightness value of the above-mentioned display screen according to the above-mentioned brightness detection signal;
[0026] The above-mentioned photosensor is also used to generate the above-mentioned test result when the screen brightness value of the central area of the above-mentioned display screen is greater than the above-mentioned brightness threshold, and transmit the above-mentioned test result to the third port of the above-mentioned control component through the above-mentioned signal end.
[0027] In a third aspect, the present application further provides a touch detection device, the device comprising:
[0028] A parameter acquisition module, used to acquire test parameters for the display screen of the terminal device, wherein the test parameters include the number of tests;
[0029] A signal sending module, used for sending a touch test signal to a touch switch component in a touch detection circuit and a brightness detection signal to a brightness detection component in the touch detection circuit during an i-th test; the touch test signal is used to trigger the touch switch component to switch to an on state, and the brightness detection signal is used to trigger the brightness detection component to detect the screen brightness value of the display screen; i is an integer less than or equal to N, and N is the number of tests;
[0030] A touch trigger module, used for triggering the touch execution component to extract the charge of the touch surface of the display screen according to the touch switch component being in the on state, so as to perform a simulated touch operation on the display screen; the touch execution component is located on the touch surface of the display screen;
[0031] A touch time acquisition module, used for generating the touch time of the display screen in the i-th test according to the time when the touch switch component is switched to the on state;
[0032] a response time acquisition module, for determining, upon receiving the test result returned by the brightness detection component, that the display screen has responded to the simulated touch operation, and generating the response time of the display screen in the i-th test according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold;
[0033] The time-consuming determination module is used to determine the touch response time of the above display screen according to the touch time and response time corresponding to the N tests of the above display screen after obtaining the touch time and response time respectively.
[0034] The time-consuming determination module includes:
[0035] A time difference acquisition unit is used to acquire the time difference between the response time and the touch time corresponding to the i-th test; the time difference acquisition unit is also used to acquire the time difference values corresponding to the N tests respectively when the number of tests is multiple;
[0036] A time consumption calculation unit, used for obtaining the touch response time consumption of the above display screen according to the time difference values corresponding to the above N tests respectively;
[0037] The time consumption calculation unit is further configured to determine the time difference corresponding to the i-th test as the touch response time consumption of the display screen when the number of the tests is 1.
[0038] The time-consuming calculation unit includes:
[0039] A first calculation subunit is used to average the time differences corresponding to the N tests to obtain an average value, and determine the average value as the touch response time of the display screen;
[0040] A second calculation subunit is used to determine the time difference with the smallest value among the time differences corresponding to the N tests as the touch response time of the display screen;
[0041] The third calculation subunit is used to determine the time difference with the largest value among the time differences corresponding to the N tests as the touch response time of the display screen.
[0042] The touch time acquisition module includes:
[0043] A conduction indication unit, configured to determine that the touch switch component has switched to the conduction state and obtain the reception time of the conduction indication signal when receiving the conduction indication signal returned by the touch switch component; the conduction indication signal is sent when the touch switch component has switched to the conduction state;
[0044] A conduction time determination unit, used to determine the time of receiving the conduction indication signal as the time when the touch switch assembly switches to the conduction state;
[0045] The touch time determining unit is used to determine the time when the touch switch component is switched to the on state as the touch time of the display screen.
[0046] The touch trigger module is also used for:
[0047] According to the touch switch component being in the on state, the touch execution component is triggered to be connected to the ground terminal, so that the touch execution component exports the charge in the display screen to the ground terminal, so as to perform the analog touch operation on the display screen.
[0048] Wherein, the above-mentioned signal sending module includes:
[0049] A touch signal generating unit, configured to generate a touch test signal with a pulse width equal to the touch duration in the i-th test, when the test parameters further include the touch duration;
[0050] The touch signal sending unit is used to send a touch test signal with a pulse width equal to the above-mentioned touch duration to the touch switch component in the above-mentioned touch detection circuit; the touch test signal with a pulse width equal to the above-mentioned touch duration is used to trigger the touch switch component in the above-mentioned touch detection circuit to switch to the on state, and switch to the off state when the duration of the on state is equal to the above-mentioned touch duration.
[0051] Wherein, the above-mentioned touch trigger module includes:
[0052] a trigger unit, configured to trigger the display screen to display a first image through a derivation operation performed by the charge of the touch surface, so that the brightness detection component detects that the screen brightness value of the display screen is greater than the brightness threshold, and returns the test result that the brightness of the first image is greater than the brightness threshold;
[0053] The pause trigger unit is used to trigger the display screen to display a second image by pausing the derivation operation of the charge on the touch surface, and the brightness of the second image is less than or equal to the brightness threshold; the touch execution component suspends the derivation operation of the charge on the touch surface when the touch switch component is switched to the disconnected state.
[0054] Wherein, the above-mentioned signal sending module also includes:
[0055] a time interval determining unit, for obtaining, for the i-1th test, a sending time of sending the touch test signal to the touch switch component in the touch detection circuit when the test parameters also include the test time interval;
[0056] A start time determination unit, used to determine the start time of the i-th test for the display screen according to the sending time and the test time interval;
[0057] The touch signal sending unit is further used for sending the touch test signal to the touch switch component in the touch detection circuit when the time reaches the start time of the i-th test.
[0058] In a fourth aspect, the present application further provides a computer device, the computer device comprising: a processor and a memory;
[0059] The processor is connected to a memory, wherein the memory is used to store program code, and the processor is used to call the program code to execute the steps of the method provided in the first aspect of the present application.
[0060] In a fifth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the processor executes the program instructions, the method provided in the first aspect of the present application is executed.
[0061] In the sixth aspect, the present application also provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the first aspect of the present application.
[0062] In the present application, when it is necessary to test the display screen in the terminal device, the control component in the touch detection circuit can pre-acquire the test parameters for the display screen, and the test parameters may include the number of tests N. In the i-th test (i.e., any test), the control component in the touch detection circuit can send a touch test signal to the touch switch component in the touch detection circuit to trigger the touch switch component to be in a conducting state. When the touch switch component is switched to the conducting state, the touch execution component set on the touch surface of the display screen will derive the charge of the touch surface of the display screen to automatically perform a simulated touch operation on the display screen. Therefore, the control component can determine the time when the touch switch component is switched to the conducting state as the time to perform the simulated touch operation on the display screen, i.e., the touch time corresponding to the i-th test. In the process of performing a simulated touch operation on the display screen, if the display screen responds to the simulated touch operation, the display screen will light up, i.e., the screen brightness value of the display screen will be greater than the brightness threshold. Therefore, the control component can send a brightness detection signal to the brightness detection component in the touch detection circuit to trigger the brightness detection component to detect the screen brightness value of the display screen. If the control component receives the test result returned by the brightness detection component, it is determined that the display screen has responded to the simulated touch operation, and the response time of the display screen in the i-th test is generated according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold. By analogy, the above steps are repeated until the touch time and response time corresponding to N tests are obtained, and the touch response time of the display screen can be determined according to the touch time and response time corresponding to N tests. It can be seen that in the present application, the simulated touch operation is automatically performed on the display screen through the touch detection circuit, and the touch time and response time of the display screen are automatically obtained. Then, based on the touch time and response time, the touch response time of the display screen is automatically determined, so as to realize the automated testing of the display screen without manual participation, improve the test accuracy and test efficiency of the touch response time of the display screen, and have strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0064] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0065] Figure 2 A schematic diagram of a touch detection circuit provided in an embodiment of the present application;
[0066] Figure 3 Another structural schematic diagram of the touch detection circuit provided in an embodiment of the present application;
[0067] Figure 4 Another structural schematic diagram of the touch detection circuit provided in an embodiment of the present application;
[0068] Figure 5 A schematic diagram of a system architecture provided for an embodiment of the present application;
[0069] Figure 6 A schematic diagram of a flow chart of a testing method provided in an embodiment of the present application;
[0070] Figure 7 A waveform diagram of a touch test signal provided in an embodiment of the present application;
[0071] Figure 8 A signal diagram of a touch test circuit provided in an embodiment of the present application;
[0072] Fig. 9 A schematic diagram of the structure of a touch detection device provided in an embodiment of the present application;
[0073] Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0075] It should be understood that the touch display screen is an electronic device currently widely used in various terminal devices, and the above-mentioned terminal devices can be mobile phones, tablet computers, car-mounted devices, game consoles, etc. The operating object can operate the preset program system in the terminal device by touching the touch display screen. At the same time, the terminal device can display the interface corresponding to the touch operation on the touch display screen according to the touch operation of the operating object on the touch display screen, thereby realizing simple, convenient and natural human-computer interaction. For example, when the terminal device is a mobile phone, the operating object can operate various application clients using the mobile phone by touching the touch display screen of the mobile phone. For the convenience of explanation, this application uses the display screen as the abbreviation of the above-mentioned touch display screen for explanation in the following content.
[0076] It is understandable that when the operating object touches a target area on the display screen of the terminal device, since the display screen surface of the terminal device is covered with current in the working state, the touch operation of the operating object on the display screen will absorb part of the current of the display screen in the above target area, so that the current distribution on the surface of the display screen changes. Further, the terminal device can respond according to the change of the current distribution on the surface of the display screen. For example, when the operating object clicks on the icon of any application client on the display screen of the mobile phone through a finger, the finger of the operating object will absorb part of the current on the surface of the display screen corresponding to the icon of the application client, and the icon of the application client can be understood as a target area of the above display screen. Further, the mobile phone can determine that the icon of the application client is clicked according to the change of the current distribution on the surface of the display screen, and then respond to the click operation of the operating object on the application client, and display the startup interface of the application client on the display screen. It is understandable that the operating object can also touch the touch display screen through a capacitive pen or other receivable contacts, and this application is not illustrated one by one here.
[0077] It should be understood that in the above content, from the time when the operating object touches the display screen of the terminal device to the time when the terminal device detects the touch action of the operating object and responds to the display, there will be a touch response time. The touch response time can be understood as the time from the operating object touching the display screen to the time when the display screen responds. For ease of understanding, this application takes the operation object starting any application client on the mobile phone as an example for explanation. At the first moment, the operating object clicks the icon of the application client on the mobile phone with a finger, and the mobile phone detects that the icon of the application client is clicked based on the above content, and then runs the startup program and interface rendering program of the application client according to the preset program. Further, at the second moment, the mobile phone displays the startup interface of the application client on the display screen, thereby realizing the display response to the click operation of the application client. It can be understood that the above first moment is the time when the operating object touches the display screen of the mobile phone, and the above second moment is the time when the display screen of the mobile phone responds to the display, then the time difference between the first moment and the second moment is the above touch response time.
[0078] It is understandable that the display screen described in this application can be a capacitive screen or a resistive screen, and the corresponding touch response time is different for different types of display screens. On the one hand, the touch response time of the display screen is related to the conductive material used. The smaller the resistance of the conductive material, the shorter the charge and discharge time of the display screen, which makes the current on the surface of the display screen change faster when it is touched, so that the touch response time of the display screen is shorter. On the contrary, the greater the resistance of the conductive material, the longer the charge and discharge time of the display screen, which makes the current on the surface of the display screen change slower when it is touched, so that the touch response time of the display screen is longer. On the other hand, the touch response time of the display screen is also related to the performance of the touch chip in the terminal device. The stronger the performance of the touch chip, the higher the corresponding computing power, then when the terminal device detects a touch on the display screen, the touch chip can quickly calculate the target display interface (such as the startup interface obtained when the application client is touched above), so that the touch response time of the display screen is shorter. On the contrary, the worse the performance of the touch chip, the lower the corresponding computing power. When the terminal device detects a touch on the display screen, the touch chip will need to spend more time to calculate the target display interface (such as the startup interface obtained when the application client is touched as mentioned above), which makes the touch response of the display screen take longer.
[0079] It is understandable that the touch response time of the display screen can reflect the response speed of the terminal device, thereby affecting the touch smoothness of the display screen. Among them, the longer the touch response time of the display screen, it means that when the operating object touches the display screen of the terminal device, the display screen needs to spend more time to display the response. Therefore, in the case where the touch response time is long, the display screen will have a short pause and cannot detect the touch operation, thereby reducing the touch smoothness of the display device. On the contrary, the shorter the touch response time of the display screen, it means that when the operating object touches the display screen of the terminal device, the display screen takes a shorter time to display the response. Therefore, in the case of a short touch response time, the display screen can quickly respond to the touch of the operating object on the display screen to avoid jamming. It can be seen that by reducing the touch response time of the display screen, the touch smoothness of the display screen can be improved, giving the operating object a smoother touch experience.
[0080] For example, in some application scenarios, the touch response time of the display screen of terminal devices such as smartphones, high-performance game consoles, and cloud gaming devices is an important indicator reflecting the game interaction experience of the terminal device. A low touch response time can ensure that the game screen is fast and smooth, and improve the game interaction experience of the operating object.
[0081] To this end, when producing terminal devices, manufacturers test the touch response time of the display screen of the terminal device to ensure that the touch response time of the display screen of the terminal device is less than the time threshold, so that the operating object can obtain a faster display response when touching the display screen of the terminal device. Among them, the above-mentioned time threshold can be understood as the maximum value of the touch response time of the display screen corresponding to the operating object to obtain a good touch experience.
[0082] In some feasible implementations, the touch response time of the display screen can be tested by shooting with a high-speed camera. Figure 1 , Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application. Figure 1 The medium and high speed camera is placed on the touch surface side of the display screen. The tester can adjust the high speed camera to shoot the touch surface of the display screen and the millisecond meter. Figure 1 When testing the touch response time of the display screen in the application scenario shown, first, the tester can start the high-speed camera in advance to take pictures. Furthermore, when the high-speed camera is taking pictures, the tester starts the stopwatch to time. Then, the tester uses a capacitive pen to click any area of the display screen of the terminal device to touch the display screen of the terminal device. It is understandable that the terminal device can detect the touch operation of the capacitive pen on the display screen and display the response. For example, Figure 1 As shown, assuming that before the tester uses the capacitive pen to touch the display screen of the terminal device, the display screen remains off, and after the tester uses the capacitive pen to touch the display screen of the terminal device, the display screen of the terminal device can light up in response to the touch of the capacitive pen. It can be understood that when the display screen lights up, the display screen implements the above display response.
[0083] Understandably, in order to obtain Figure 1 The touch response of the display screen in the application scenario shown is time-consuming. After the display screen is refreshed to a bright screen, the tester can determine that the display screen has a display response, thereby stopping shooting to obtain a high-speed test video from the capacitive pen touching the display screen to the display screen having a display response. Further, the tester can slow down the high-speed video to obtain the corresponding millisecond meter timing time when the tester clicks the capacitive pen on the display screen during the test, and then determine that the millisecond meter timing time at this time is the time when the capacitive pen touches the display screen. And when the display screen is bright, obtain the corresponding millisecond meter timing time, and then determine that the millisecond meter timing time at this time is the time when the display screen has a display response.
[0084] Furthermore, the tester can determine the touch response time of the display screen of the terminal device based on the time when the capacitive pen touches the display screen and the time when the display screen responds. For example, assuming that the tester slows down the high-speed video and determines that when the capacitive pen touches the display screen, the timing time of the millisecond meter is the first timing time, and when the display screen is on, the corresponding timing time of the millisecond meter is the second timing time, then the tester can test that the touch response time of the test screen is x2-x1.
[0085] It is understandable that in the above Figure 1 In the application scenario shown, it takes a lot of time for the tester to operate the high-speed camera to shoot, and it is necessary to manually play back the video and determine the timing time of the millisecond meter, which is inefficient. Manual operation also introduces subjective errors, affecting the test accuracy of the touch response time.
[0086] In some feasible implementations, in order to improve the time-consuming test efficiency of touch response, the test device can control the mechanical arm through software, simulate the touch operation of the operating object on the display screen, and control the high-speed camera to shoot, from the mechanical arm touching the display screen to the display screen display response. Specifically, the test device is connected to the mechanical arm, and the test device can send a control instruction to the mechanical arm to control the mechanical arm to click the display screen through software control. The action of the mechanical arm clicking the screen can be understood as a simulation of the touch operation of the operating object on the display screen. In order to accurately determine the time when the mechanical arm clicks, the above-mentioned test device can control the signal light of the mechanical arm to change color while outputting the control instruction to control the mechanical arm to click, and then the time when the mechanical arm clicks the display screen can be determined by the time when the color of the signal light changes. For example, before the mechanical arm clicks, the above-mentioned test device can control the color of the signal light to be green, and when the mechanical arm clicks, the test device can control the color of the signal light to switch from green to red. Furthermore, the test equipment uses a high-speed camera to obtain a test video from the time the robotic arm clicks the test screen to the time the display screen responds, and uses image processing and analysis technology to automatically identify the time when the signal light switches from green to red and the time when the display screen switches from off to on in the test video, and then obtains the touch response time of the display screen.
[0087] It is understandable that when the touch screen is simulated by a robotic arm, it is necessary to control the robotic arm to simulate the click action of the operation object, and the test efficiency will be limited to a certain extent. At the same time, the cost of the robotic arm is expensive, the application of image processing and analysis technology is complex, and the maintenance cost is high.
[0088] Based on the technical problems mentioned above, an embodiment of the present application proposes a touch detection circuit, which can efficiently test the touch response time of the display screen, and the touch detection circuit has a simple structure, is easy to implement, has low cost and strong applicability.
[0089] For details, please refer to Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a touch detection circuit provided in an embodiment of the present application. Figure 2 As shown, the touch detection circuit provided in the embodiment of the present application includes a control component, a touch switch component, a touch execution component and a brightness detection component. Among them, the control component is connected to the touch execution component through the touch switch component, and the control component is also connected to the brightness detection component. At the same time, the above-mentioned touch execution component and brightness detection component are both arranged on the touch surface of the display screen of the terminal device. Figure 2The touch detection circuit shown can obtain the touch response time of the display screen by performing a simulated touch operation on the display screen of the terminal device. For ease of understanding, the working principle of the touch detection circuit to obtain the touch response time of the display screen is described in detail in the following embodiments of the present application.
[0090] In some feasible implementations, when testing the display screen, the touch detection circuit can obtain the touch time of performing a simulated touch operation on the display screen, and the response time of the display screen responding after being touched, so as to determine the touch response time of the display screen of the terminal device according to the above touch time and response time. Specifically, since the screen brightness value of the display screen is less than or equal to the brightness threshold when the above display screen is not touched, and at the same time, when the above display screen is touched and a display response occurs, the screen brightness value of the display screen is greater than the brightness threshold. Therefore, in order to determine the response time of the display screen display response, the touch detection circuit of the embodiment of the present application can detect whether the screen brightness value of the display screen is greater than the brightness threshold through the brightness detection component, and when the screen brightness value of the display screen is greater than the above brightness threshold, it is determined that the display screen has responded to the touch operation, and then the response time of the display screen is obtained. Among them, the above brightness threshold can be understood as the minimum value of the screen brightness value of the corresponding display screen when the display screen responds to the display. Furthermore, in order to ensure that the touch detection circuit can accurately determine the response time of the display screen, the terminal device in the embodiment of the present application can control the display screen to be off before being touched, and switch from off to on when a display response occurs when being touched, so as to ensure that the screen brightness value of the display screen when a display response occurs is significantly different from the screen brightness value when no display response occurs. It can be seen from the above content that the brightness detection component is arranged on the touch surface of the display screen. When the display screen switches from off to on, the screen brightness value of the display screen increases. At this time, the brightness detection component can detect that the screen brightness value of the display screen is greater than the above brightness threshold, and return the corresponding test result at the same time. It can be understood that the test result is used to characterize that the display screen has responded after being touched.
[0091] In some feasible implementations, the control component of the touch detection circuit in the embodiment of the present application can send a brightness detection signal to the brightness detection component, so that the brightness detection component starts working according to the brightness detection signal, that is, the brightness detection component starts to detect the screen brightness value of the display screen after receiving the brightness detection signal, and generates a test result and returns it to the control component when the screen brightness value is greater than the brightness threshold. Furthermore, since the test result indicates that the display screen has responded, the control component can obtain the response time according to the time when the test result is received.
[0092] In general, the touch detection circuit in the embodiment of the present application can send a brightness detection signal to the brightness detection component through the control component, so that the brightness detection component detects the screen brightness value of the display screen. Further, the brightness detection component can return the test result to the control component according to the change of the screen brightness value of the display screen when the display screen responds, so that the control component determines the response time of the display screen response according to the reception time of the test result.
[0093] In some feasible implementations, it can be seen from the above content that the touch surface of the display screen is covered with current. When the operating object clicks the finger on any area on the touch surface of the display screen, the finger of the operating object absorbs the current in the area through contact with the touch surface to change the current distribution on the touch surface of the display screen, thereby performing a touch operation on the display screen. In order to perform efficient touch operations on the above-mentioned display screen, the touch detection circuit of the embodiment of the present application can send a touch test signal to the touch switch module through the control component, so that the touch switch component switches to a conductive state according to the touch test signal. Further, the touch execution component can perform a simulated touch operation on the display screen when the touch switch component switches to a conductive state, that is, simulate the above-mentioned operating object clicking the finger on the touch surface of the display screen. It can be understood that when the touch execution component performs a simulated touch operation on the display screen, the terminal device can respond to the simulated touch operation and cause the display screen to display a response (for example, switching from the off screen to the bright screen), and then the above-mentioned brightness detection component can be used for detection and identification.
[0094] Specifically, the above-mentioned touch execution component is arranged on the touch surface of the display screen. When the touch switch component is in the off state, the touch execution component is attached to the touch surface and will not affect the distribution of the current on the touch surface. When the touch switch component is switched to the on state according to the touch test signal, the touch execution component attached to the touch surface can extract the charge in the display screen, thereby changing the distribution of the current on the display screen. It can be understood that when the touch execution component extracts the charge in the display screen, it is equivalent to sucking away part of the current on the surface of the display screen, that is, the current distribution on the touch surface of the display screen has changed, and then the terminal device can be triggered to refresh the display screen according to the change of the current distribution on the touch surface of the display screen, so that the display screen has the above-mentioned display response.
[0095] In some feasible implementations, it can be known from the above content that when the touch detection circuit tests the display screen, it can obtain the touch time of performing the simulated touch operation on the display screen and the response time of the display screen after being touched, so as to determine the touch response time of the display screen of the terminal device according to the above touch time and response time. Furthermore, the touch detection circuit of the embodiment of the present application can obtain the above touch time by determining the time when the touch execution module performs the above simulated touch operation on the display screen, and then obtain the touch response time of the display screen according to the touch time and the above response time. Specifically, since the touch execution component can perform the simulated touch operation on the display screen when the touch switch component is switched to the on state, the touch detection circuit of the embodiment of the present application can determine the time when the touch switch component is switched to the on state as the time when the touch execution component performs the simulated touch operation on the display screen, so as to obtain the above touch time.
[0096] For some possible implementations, see Figure 3 , Figure 3 FIG. 2 is another structural diagram of a touch detection circuit provided in an embodiment of the present application. Figure 3 As shown, the touch switch component of the touch detection circuit includes a first switch, a second switch and an electromagnetic induction unit. The electromagnetic induction unit is connected to the first port of the control component, and the electromagnetic induction unit is coupled to the first switch and the second switch. One end of the first switch is connected to the second port of the control component, and the other end is connected to the first ground terminal. One end of the second switch is connected to the touch execution component, and the other end is connected to the second ground terminal.
[0097] Understandably, Figure 3When the touch switch assembly shown does not receive the touch test signal, the electromagnetic induction unit in the touch switch assembly does not generate an induced magnetic force, and the first switch and the second switch coupled to the electromagnetic induction unit are in a disconnected state. At this time, the touch execution assembly is disconnected from the second ground terminal, and the second port of the control assembly is disconnected from the first ground terminal. It should be noted that when the second port of the control assembly is not connected to the first ground terminal, the level of the second port is maintained at a high level. When the control assembly sends the above-mentioned touch test signal to the electromagnetic induction unit of the touch switch assembly through the first port, the electromagnetic induction unit can generate an induced magnetic force based on the touch test signal, and the induced magnetic force can attract the first switch and the second switch coupled to the electromagnetic induction unit, so that the first switch and the second switch are turned on, that is, the touch switch assembly is switched to a conducting state. It can be understood that when the first switch is turned on, the second port of the control assembly is connected to the first ground terminal, and the second port of the control assembly will be switched from the above-mentioned high level to a low level under the action of the first ground terminal. At the same time, when the second switch is turned on, the touch execution component is connected to the second ground terminal. At this time, the touch execution component can export the charge in the display screen to the second ground terminal, that is, the touch execution component can absorb part of the current on the surface of the display screen when the second switch is turned on, thereby realizing analog touch operation on the display screen.
[0098] It can be understood that the first switch and the second switch of the touch switch assembly in the embodiment of the present application are coupled and connected with the above-mentioned electromagnetic induction unit, and when the electromagnetic induction unit does not receive the above-mentioned touch test signal, the first switch and the switch are both kept in the disconnected state. When the electromagnetic induction unit receives the above-mentioned touch test signal, the electromagnetic induction unit generates an induced magnetic force according to the touch test signal, and the first switch and the second switch are both attracted by the induced magnetic force. Therefore, the first switch and the second switch can be turned on or off at the same time. It can be understood that, from the above content, when the second switch is turned on, the touch execution component performs a simulated touch operation on the display screen, and at the same time, the first switch is turned on, and the second port of the control component is switched from a high level to a low level. It can be seen that the time when the second port of the control component is switched from a high level to a low level is consistent with the time when the touch execution component performs a simulated touch operation on the display screen. Therefore, the control component can determine the time when the second port is switched from a high level to a low level as the time when the above-mentioned touch execution component performs a simulated touch operation on the display screen, that is, the above-mentioned touch time.
[0099] It can be understood that when the second port of the above-mentioned control component switches from a high level to a low level, it can be understood that the first switch generates a conduction indication signal and sends it to the second port of the control component. Among them, the conduction indication signal refers to a low-level ground signal. From the above content, it can be seen that when the control component receives the conduction indication signal, it indicates that the touch execution component has performed a simulated touch operation on the display screen. For this reason, the control component can determine the reception time of the conduction indication signal as the time when the touch execution component performs the simulated touch operation on the display screen, that is, the reception time of the conduction indication signal is determined as the above-mentioned touch time.
[0100] In some feasible implementations, the touch detection circuit of the embodiment of the present application may use a double-pole relay as the above-mentioned touch switch component, or use other types of double-pole switch components, which is not limited in the present application.
[0101] In general, the control component of the embodiment of the present application sends a touch test signal to the electromagnetic induction unit of the touch switch component through the first port, triggering the electromagnetic induction unit to generate an induced magnetic force to attract the first switch and the second switch coupled to the electromagnetic induction unit. When the second switch is turned on, the touch execution component performs a simulated touch operation on the display screen. At the same time, the first switch is turned on so that the second port of the control component is grounded, thereby sending a conduction indication signal to the second port of the control component. The control component can determine the time when the touch execution component performs a simulated touch operation on the display screen according to the reception time of the conduction indication signal to obtain the touch time. Further, after the touch execution component performs a simulated touch operation on the display screen, the current distribution on the surface of the display screen changes, triggering the terminal device to refresh the display screen so that the display screen responds, for example, the display screen switches from off to on. At the same time, the touch detection circuit can detect the screen brightness value of the display screen through the above-mentioned brightness detection component, and when the screen brightness value of the display screen is greater than the brightness threshold, generate a test result and send it to the control component. It can be seen from the above content that the control component can determine the time when the display screen responds according to the reception time of the test result, that is, the above-mentioned response time. Furthermore, after obtaining the above-mentioned response time and touch time, the control component can determine the touch response time of the display screen obtained through the test according to the time difference between the response time and the touch time.
[0102] In some feasible implementations, the embodiments of the present application may use a photosensitive sensor as the brightness detection component. The photosensitive sensor is a sensitive device that has a response or conversion function to external light signals or light radiation. The photosensitive sensor can convert light signals into electrical signals, thereby realizing the detection of light signals. Specifically, Figure 3As shown, in the embodiment of the present application, when a photosensitive sensor is used as a brightness detection component to detect the screen brightness value of a display screen, the photosensitive sensor can be set on the touch surface of the display screen, and the signal end of the photosensitive sensor can be connected to the third port of the control component, and the power end of the photosensitive sensor can be connected to the fourth port of the control component.
[0103] In some feasible implementations, the control component can provide a brightness detection signal to the power supply terminal of the photosensor through the fourth port. After the photosensor receives the brightness detection signal through the power supply terminal, it can work according to the brightness detection signal to detect the screen brightness value of the display screen. Among them, the above brightness detection signal can be understood as a power supply signal of the photosensor. For example, assuming that the operating voltage of the photosensor is 5 volts, that is, the photosensor requires a 5 volt power supply signal when in working state, the fourth port of the control component can output a 5 volt DC signal as the above brightness detection signal, so that the photosensor can work according to the brightness detection signal.
[0104] In some feasible implementations, different terminal devices refresh the display screen in different ways. Figure 1 The terminal device shown can refresh from one end of the display screen to the other end of the display screen (from left to right), or the terminal device can also refresh the display screen in the same manner as Figure 1 Refresh in the opposite manner as shown (from right to left). It will be understood that when the display screen switches from off to on, the area that is refreshed first switches to on first. It can be seen that when the display screen responds, the screen brightness values in different areas of the display screen change asynchronously. Then when the photosensors are placed in different areas of the display screen, the photosensors detect that the display screen responds at different times. In order to avoid the time error caused by the asynchronous changes in screen brightness values in different areas of the display screen, the touch detection circuit of the embodiment of the present application can place the photosensor at the center of the touch surface of the display screen when testing the display screens of different terminal devices. For details, please refer to Figure 4 , Figure 4 FIG. 2 is another structural diagram of a touch detection circuit provided in an embodiment of the present application. Figure 4 As shown, the photosensor is placed at the center of the touch surface of the display screen. At this time, the distance s between the photosensor and the two ends of the display screen is equal.
[0105] In some feasible implementations, the above-mentioned photosensitive sensor may include a comparison unit, and the above-mentioned comparison unit may be used to adjust the brightness threshold of the photosensitive sensor. It is understandable that when the display screens of different terminal devices are responding, for example, when the screen is switched from off to on, the screen brightness values of the display screens may be different. In order to accurately detect the screen brightness values of the display screens of different terminal devices, the touch detection circuit of the embodiment of the present application can adjust the comparison unit of the photosensitive sensor to change the brightness threshold of the photosensitive sensor, thereby realizing adaptive adjustment for testing the display screens of different terminal devices. For example, when the display screen of the terminal device is responding, the screen brightness value of the display screen is relatively large, then the touch detection circuit can adjust the comparison unit of the photosensitive sensor to make the brightness threshold of the photosensitive sensor relatively large. On the contrary, when the display screen of the terminal device is responding, the screen brightness value of the display screen is relatively small, then the touch detection circuit can adjust the comparison unit of the photosensitive sensor to make the brightness threshold of the photosensitive sensor relatively small, thereby realizing accurate detection of the screen brightness values of different display screens.
[0106] In some feasible implementations, in order to prevent external stray light from affecting the detection of the photosensor, the touch detection circuit of the embodiment of the present application can cover the photosensor with a light shield so that the photosensor only receives the light signal of the display screen, thereby avoiding detection errors caused by external light sources and improving the detection accuracy of the screen brightness value of the display screen.
[0107] In the embodiment of the present application, the touch detection circuit controls the touch switch component and the touch execution component through the control component to perform efficient simulated touch operations on the display screen, and determines the touch time according to the time when the touch switch component is switched to the on state. The control component can also detect the screen brightness value of the display screen through the brightness detection component to obtain the test result when the screen brightness value of the display screen is greater than the brightness threshold, and determine the response time of the display screen according to the reception time of the test result, and then determine the touch response time of the display screen according to the time difference between the above response time and the touch time. The touch detection circuit of the embodiment of the present application has a simple structure, high test efficiency, and improves the accuracy of the touch response time test.
[0108] In some feasible implementations, the touch detection circuit provided in the embodiments of the present application can be applied to Figure 5 For details, please refer to Figure 5 , Figure 5 A schematic diagram of a system architecture provided in an embodiment of the present application. Figure 5As shown, the system architecture may include a business server 100, a touch detection circuit system and a terminal cluster. The touch detection system may include: touch detection circuits 200a, 200b, 200c, ..., 200n and other touch detection circuits. The terminal cluster may include: terminal devices 300a, 300b, 300c, ..., 300n and other terminal devices. Among them, the above-mentioned business server 100 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal device (including terminal device 300a, terminal device 300b, terminal device 300c, ..., terminal device 300n) can be a handheld computer, a smart phone, a laptop computer, a desktop computer, a tablet computer, a mobile Internet device (mobile internet device, MID), a wearable device (such as a smart watch, a smart bracelet, etc.), a smart computer, a smart car-mounted device, and other smart terminals with a display screen, but are not limited to these.
[0109] Among them, the business server 100 can establish a communication connection with each touch detection circuit in the touch detection system, and a communication connection can also be established between each touch detection circuit in the touch detection system. In other words, the business server 100 can establish a communication connection with each touch detection circuit in the touch detection circuit 200a, the touch detection circuit 200b, the touch detection circuit 200c, ..., the touch detection circuit 200n. For example, a communication connection can be established between the touch detection circuit 200a and the business server 100. A communication connection can be established between the touch detection circuit 200a and the touch detection circuit 200b, and a communication connection can also be established between the touch detection circuit 200a and the touch detection circuit 200c. Among them, the above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, etc., which can be determined according to the actual application scenario, and this application does not limit it here.
[0110] It should be understood that Figure 5 Each terminal device in the terminal cluster shown may be equipped with a display screen, and the touch detection circuit connected to any terminal device may test the touch response time of the display screen of the terminal device. Figure 5The service server 100 shown can perform data interaction with each of the above-mentioned touch detection circuits, so that each of the touch detection circuits can receive service data (such as test parameters) from the service server 100, and each of the touch detection circuits can test the touch response time of the corresponding terminal device display screen according to the service data sent by the service server 100. In addition, after acquiring the touch response time of the display screen of the terminal device, each of the touch detection circuits can push the touch response time of the display screen to the service server 100, and the service server 100 can perform data analysis and integration based on the touch response time pushed by each of the touch detection circuits.
[0111] It is understandable that in the specific implementation of this application, related data such as object information is involved. When the embodiments of this application are applied to specific products or technologies, it is necessary to obtain the object's permission or consent, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0112] It is understandable that the test method provided in the embodiment of the present application can be performed as follows: Figure 5 The various touch detection circuits shown (such as Figure 5 The touch detection circuit 200a, the touch detection circuit 200b, the touch detection circuit 200c, ..., the touch detection circuit 200n shown in the figure can be executed, or each touch detection circuit and the service server 100 can be executed together. The specific implementation can be determined according to the actual application scenario and is not limited here. For the convenience of subsequent understanding and description, the embodiment of the present application can be in Figure 5 A touch detection circuit is selected from the multiple touch detection circuits shown as the target touch detection circuit, and a terminal device connected to the target touch detection circuit is used as the target terminal device, for example, touch detection circuit 200b is used as the target touch detection circuit, and terminal device 200b is used as the target terminal device.
[0113] For further information, see Figure 6 , Figure 6 A flow chart of the test method provided in the embodiment of the present application. For ease of understanding, the embodiment of the present application uses a terminal device as an example. Figure 5 The touch detection circuit 200b is a touch detection circuit for detecting the time consumption of touch response, and the terminal device 300b is a terminal device to be tested. Figure 6 In the test method shown in FIG. 1 , each step of testing the touch response time consumption can be performed as described above. Figure 5 The touch detection circuit 200b is used to perform, for example Figure 6 As shown, the testing method may at least include the following steps S101 to S105.
[0114] Step S101: Acquire test parameters for a display screen of a terminal device, where the test parameters include the number of tests.
[0115] In some feasible implementations, it can be seen from the above content that the touch detection circuit in the embodiment of the present application can communicate with the business server, and the business server can push test parameters to the control component of the touch detection circuit so that the touch detection circuit can test the display screen of the terminal device according to the test parameters.
[0116] Specifically, the above test parameters may include the number of tests. After the control component of the touch detection receives the number of tests pushed by the service server, the touch response time of the display screen of the terminal device may be tested multiple times according to the number of tests, and the test may be stopped after the number of tests is equal to the number of tests. For example, when the control component of the touch detection circuit receives 10 tests pushed by the service server, the touch detection circuit may perform 10 tests on the touch response time of the display screen of the terminal device according to the number of tests. Specifically, the touch detection circuit may query and record the number of tests by the control component after completing each test. When the control component of the touch detection circuit inquires that the number of tests of the touch detection circuit is less than the number of tests (10 times), the touch detection circuit continues to test the touch response time of the display screen. When the touch detection circuit completes the test, the control component of the touch detection circuit inquires that the number of tests of the touch detection circuit is equal to or greater than the number of tests (10 times), the touch detection circuit stops testing the touch response time of the display screen, that is, the touch detection circuit completes 10 tests on the touch response time of the display screen.
[0117] It is understandable that, in the process of the display screen of the terminal device being touched and responding multiple times, the time for each response after being touched may be different, that is, the response time of the display screen during each test may be different. In order to avoid using the response time with a large error in a single test as the touch response time of the display screen, the touch detection circuit of the embodiment of the present application can obtain the number of tests performed on the terminal device to determine the touch response time of the display screen based on the multiple candidate touch response times obtained after multiple tests.
[0118] Step S102: for the i-th test, sending a touch test signal to the touch switch component in the touch detection circuit, and sending a brightness detection signal to the brightness detection component in the touch detection circuit.
[0119] In some feasible implementations, the control component of the touch detection circuit can start testing the display screen of the terminal device after obtaining the number of tests N, where N is the number of tests mentioned above. It can be understood that the steps of the touch detection circuit testing the touch response time of the display screen during the N tests are the same. For ease of understanding, the embodiment of the present application takes the first test of the touch response time of the display screen by the touch detection circuit as an example to be described in detail in the following content. Similarly, the i-th test of the touch response time of the display screen by the touch detection circuit can refer to the specific implementation of the first test, and the present application does not give examples one by one here. Wherein, i is an integer less than or equal to N.
[0120] In some feasible implementations, it can be known from the above content that the touch detection circuit can perform a simulated touch operation on the display screen of the terminal device to change the current distribution on the surface of the display screen, thereby triggering the terminal device to refresh the display screen according to the change in the current distribution on the surface of the display screen, so that the display screen responds. Further, the touch detection circuit can determine the touch response time of the display screen in this test by obtaining the touch time of performing the simulated touch operation on the display screen and the response time of the display screen responding to the display.
[0121] It is understandable that for the first test, if Figure 4 As shown, the control component of the touch detection circuit can send a brightness detection signal to the brightness detection component in the touch detection circuit through the fourth port. The brightness detection signal is used to trigger the brightness detection component to detect the screen brightness value of the display screen. The above brightness detection signal can be understood as a power signal of the brightness detection component. For example, assuming that the working voltage of the brightness detection component is 5 volts, that is, the brightness detection component requires a 5 volt power signal when in working state, the fourth port of the control component can output a 5 volt DC signal as the above brightness detection signal, so that the brightness detection component can detect the screen brightness value of the display screen according to the brightness detection signal.
[0122] It is understandable that for the first test, if Figure 3 As shown, the control component of the touch detection circuit can send a touch test signal to the touch switch component through the first port, so that the touch switch component switches to the on state according to the touch test signal. It should be noted that when the touch switch component does not receive the touch test signal, the touch switch component remains in the off state.
[0123] Furthermore, the touch execution component can perform a simulated touch operation on the display screen when the touch switch component is switched to the on state, that is, simulate the above-mentioned operation object clicking the finger on the touch surface of the display screen. It is understandable that after the touch execution component performs the simulated touch operation on the display screen, the terminal device can respond to the simulated touch operation and make the display screen respond (for example, switch from off screen to bright screen), and then the above-mentioned brightness detection component can be used for detection and identification.
[0124] In general, during the test process, the control component of the touch detection circuit can send a brightness detection signal to the brightness detection component through the fourth port of the control component, so that the brightness detection component detects the screen brightness value of the display screen according to the brightness detection signal. The control component can also send a touch test signal to the touch switch component through the first port, so that the touch switch component switches from the disconnected state to the on state according to the touch test signal.
[0125] Step S103 : triggering the touch execution component to derive the charge of the touch surface of the display screen according to the touch switch component in the on state, so as to perform a simulated touch operation on the display screen.
[0126] In some feasible implementations, the above-mentioned touch execution component is arranged on the touch surface of the display screen. When the touch switch component does not receive the above-mentioned touch test signal, the touch switch component is in a disconnected state. At this time, the touch execution component connected to the touch switch component will not affect the distribution of the current on the touch surface. When the touch switch component is switched to the on state according to the touch test signal, the touch execution component attached to the touch surface can derive the charge in the display screen, thereby changing the distribution of the current on the display screen. It can be understood that when the touch execution component derives the charge in the display screen, it is equivalent to sucking away part of the current on the surface of the display screen, that is, performing the above-mentioned simulated touch operation on the display screen. The current distribution on the touch surface of the display screen has changed, and then the terminal device can be triggered to refresh the display screen according to the change in the current distribution on the touch surface, so that the display screen has a display response. Therefore, the touch detection circuit of the embodiment of the present application can make the touch execution component perform a simulated touch operation on the display screen according to the touch switch component in the on state by switching the touch switch component to the on state.
[0127] In some feasible implementations, the touch switch assembly can be as follows: Figure 3As shown, the touch switch assembly includes a first switch, a second switch and an electromagnetic induction switch. The electromagnetic induction unit is connected to the first port of the control assembly, and the electromagnetic induction unit is coupled to the first switch and the second switch. One end of the first switch is connected to the second port of the control assembly, and the other end is connected to the first ground terminal. One end of the second switch is connected to the touch actuator assembly, and the other end is connected to the second ground terminal.
[0128] Understandably, Figure 3 When the touch switch assembly shown does not receive the touch test signal, the electromagnetic induction unit in the touch switch assembly does not generate an induced magnetic force, and the first switch and the second switch coupled to the electromagnetic induction unit are in a disconnected state. At this time, the touch execution assembly is disconnected from the second ground terminal, and the second port of the control assembly is disconnected from the first ground terminal. When the control assembly sends the above-mentioned touch test signal to the electromagnetic induction unit of the touch switch assembly through the first port, the electromagnetic induction unit can generate an induced magnetic force based on the touch test signal, and the induced magnetic force can attract the first switch and the second switch coupled to the electromagnetic induction unit, so that the first switch and the second switch are turned on, that is, the touch switch assembly is switched to a conducting state. It can be understood that when the second switch is turned on, the touch execution assembly is connected to the second ground terminal. At this time, the touch execution assembly can export the charge in the display screen to the second ground terminal, that is, the touch execution assembly can absorb part of the current on the surface of the display screen when the second switch is turned on, thereby realizing the simulated touch operation on the display screen.
[0129] In some feasible implementations, the terminal device can control the display screen to respond to the simulated touch operation performed by the touch detection circuit on the display screen. Specifically, when the touch switch component is in the disconnected state, it means that the touch surface of the display screen is not touched, and the terminal device does not detect the change in current distribution on the touch surface of the display screen. At this time, the terminal device controls the display screen to display the second image. When the touch switch component is switched to the on state, it means that the touch execution component performs a simulated touch operation on the display screen, and the charge on the touch surface of the display screen is derived. The terminal device can detect the change in current distribution on the touch surface of the display screen, and then can execute the corresponding software program according to the change in current distribution to control the display screen to display the first image. Among them, the brightness of the above-mentioned first image is greater than the above-mentioned brightness threshold, and the brightness of the above-mentioned second image is less than or equal to the above-mentioned brightness threshold. That is to say, in the embodiment of the present application, the terminal device realizes the display response to the simulated touch operation by refreshing the second image displayed on the display screen to the first image.
[0130] It should be noted that when the above-mentioned display screen is not touched, the screen brightness value of the display screen will be less than or equal to the brightness threshold, and at the same time, when the above-mentioned display screen is touched and a display response occurs, the screen brightness value of the display screen will be greater than the brightness threshold. Therefore, in order to accurately determine the response time of the display screen to display a response, the touch detection circuit of the embodiment of the present application can make the display screen display a second image screen with a screen brightness value less than or equal to the brightness threshold when it is not touched, and display a first image screen with a screen brightness value greater than the brightness threshold when the display screen is touched and a display response occurs. Further, the touch detection circuit detects whether the screen brightness value of the display screen is greater than the brightness threshold through a brightness detection component, and determines that the display screen has responded to the touch operation when the screen brightness value of the display screen is greater than the above-mentioned brightness threshold. Among them, the above-mentioned brightness threshold can be understood as the minimum value of the screen brightness value of the corresponding display screen when the display screen responds to the display.
[0131] For example, in the embodiment of the present application, the terminal device can set the second image screen to a black screen and the first image screen to a white screen. It is understandable that when the touch switch component is in the disconnected state, that is, when the display screen is not touched, the terminal device can control the display screen to display a black screen (that is, the second image screen). Similarly, when the touch switch component is in the on state, that is, when the display screen is touched and a display response occurs, the terminal device can control the display screen to display a white screen (that is, the first image screen) to ensure that the screen brightness value of the display screen when a display response occurs is significantly different from the screen brightness value when no display response occurs.
[0132] In some feasible implementations, the brightness detection component is disposed on the touch surface of the display screen. When the display screen is refreshed from the second image to the first image, the screen brightness value of the display screen increases. At this time, the brightness detection component can detect that the screen brightness value of the display screen is greater than the brightness threshold, and return a corresponding test result. It is understandable that the test result is used to characterize that the display screen has responded after being touched.
[0133] In general, the terminal device of the embodiment of the present application can trigger the display screen to display the first image when the touch switch component is in the on state and the charge on the touch surface is extracted, so that the brightness detection component detects that the screen brightness value of the display screen is greater than the brightness threshold and returns the test result. Similarly, the terminal device can trigger the terminal device to display the second image when the touch switch component is in the off state and the charge on the touch surface is suspended from being extracted.
[0134] Step S104: generating the touch time of the display screen in the i-th test according to the time when the touch switch component is switched to the on state.
[0135] In some feasible implementations, when testing the display screen, the touch detection circuit can obtain the touch time of performing a simulated touch operation on the display screen and the response time of the display screen after being touched, so as to determine the touch response time of the display screen of the terminal device according to the above touch time and response time. Specifically, it can be seen from the above content that since the touch execution component can perform a simulated touch operation on the display screen when the touch switch component is switched to the on state, the touch detection circuit of the embodiment of the present application can determine the time when the touch switch component is switched to the on state as the time when the touch execution component performs a simulated touch operation on the display screen, so as to obtain the above touch time.
[0136] In some feasible implementations, the touch switch component of the touch detection circuit can be as follows: Figure 3 As shown, the touch switch assembly includes a first switch, a second switch and an electromagnetic induction unit. The electromagnetic induction unit is connected to the first port of the control assembly, and the electromagnetic induction unit is coupled to the first switch and the second switch. One end of the first switch is connected to the second port of the control assembly, and the other end is connected to the first ground terminal. One end of the second switch is connected to the touch execution assembly, and the other end is connected to the second ground terminal.
[0137] It is understandable that, from the above content, Figure 3 The first switch and the second switch of the touch switch assembly shown are both coupled to the electromagnetic induction unit. When the electromagnetic induction unit does not receive the touch test signal, the first switch and the switch remain in the disconnected state. When the electromagnetic induction unit receives the touch test signal, the electromagnetic induction unit generates an induced magnetic force according to the touch test signal, and the first switch and the second switch are both attracted by the induced magnetic force. Therefore, the first switch and the second switch can be turned on or off at the same time. It can be understood that, from the above content, when the second switch is turned on, the touch execution component performs a simulated touch operation on the display screen, and at the same time, the first switch is turned on, and the second port of the control component is switched from a high level to a low level. It can be seen that the time when the second port of the control component is switched from a high level to a low level is consistent with the time when the touch execution component performs a simulated touch operation on the display screen. Therefore, the control component can determine the time when the second port is switched from a high level to a low level as the time when the touch execution component performs a simulated touch operation on the display screen, that is, the above touch time.
[0138] It can be understood that when the second port of the above-mentioned control component switches from a high level to a low level, it can be understood that the first switch generates a conduction indication signal and sends it to the second port of the control component. Among them, the conduction indication signal refers to a low-level ground signal. From the above content, it can be seen that when the control component receives the conduction indication signal, it indicates that the touch execution component has performed a simulated touch operation on the display screen. For this reason, the control component can determine the reception time of the conduction indication signal as the time when the touch execution component performs the simulated touch operation on the display screen, that is, the reception time of the conduction indication signal is determined as the above-mentioned touch time.
[0139] In general, the touch detection circuit of the embodiment of the present application can determine that the touch switch component has switched to the on state when receiving the on indication signal returned by the touch switch component. Further, the control component can obtain the reception time of the on indication signal, and determine the reception time of the on indication signal as the time when the touch switch component switches to the on state. Further, the touch detection circuit can determine the time when the touch switch component switches to the on state as the touch time of the display screen, and then determine the touch response time of the display screen based on the touch time and the response time of the display screen.
[0140] In some feasible implementations, in different application scenarios, the duration of the operation object touching the display screen of the terminal device may be different, that is, the duration of the operation object clicking the finger on the touch surface of the display screen is different. In order to improve the accuracy of the test of the touch response time consumption for different terminal device display screens, according to different actual application scenarios, the test parameters pushed by the service server to the touch detection circuit in the embodiment of the present application may include the touch duration.
[0141] Furthermore, after receiving the above-mentioned touch duration, the touch detection circuit can use the touch duration to perform a simulated touch operation on the display screen for the above-mentioned touch duration. The above-mentioned touch duration can be understood as the duration for the touch detection circuit to perform the above-mentioned simulated touch operation on the display screen. For example, when the terminal device is a mobile phone, when the operating object clicks on the display screen of the mobile phone to touch, usually, the duration for the finger to click on the display screen is 100 milliseconds. To this end, in the embodiment of the present application, the business server can push the touch duration of 100 milliseconds to the control component of the touch detection circuit. It can be understood that after receiving the touch duration, the control component of the touch detection circuit can control the above-mentioned touch execution component to perform a simulated touch operation on the display screen with a touch duration of 100 milliseconds, so as to accurately simulate the operating object using a finger to touch the display screen.
[0142] In some feasible implementations, it should be noted that when the first port of the control component is in a low level state, the touch switch component remains in an off state, and when the second port of the control component is in a high level state, the touch switch component can be switched from an off state to an on state. To this end, in order to enable the touch execution component to perform a simulated touch operation of a target touch duration on the display screen, the touch detection circuit in the embodiment of the present application can adjust the duration for which the second port of the control component is maintained in a high level state to the above touch duration, so that the duration for which the touch switch component is switched to the on state is the above touch duration. It can be understood that when the duration for which the touch switch component is switched to the on state is the above touch duration, correspondingly, the touch execution component can perform a simulated touch operation of a target touch duration on the display screen according to the touch switch component that is switched to the on state.
[0143] Specifically, the control component can generate the following according to the above touch duration: Figure 7 The touch test signal is Figure 3 The first port of the control component sends the touch test signal to the touch switch component to control the touch switch component according to Figure 7 The touch test signal shown is switched to the on state. For details, please refer to Figure 7 , Figure 7 FIG. 1 is a waveform diagram of a touch test signal provided in an embodiment of the present application. Figure 7 The touch test signal shown is a rectangular pulse signal, wherein the pulse width T1 of the touch test signal can be understood as the above-mentioned touch duration. It can be understood that when the touch test signal received by the touch switch component is in Figure 7 At T11 shown, the touch test signal is at a high level. As can be seen from the above content, the touch switch component can be switched to a conducting state according to the first port in a high level state until the touch test signal received by the touch switch component is at a high level. Figure 7 At T21 shown, the touch test signal is at a low level. As can be seen from the above content, the touch switch component can be switched to an off state according to the first port at a low level. Similarly, when the touch test signal received by the touch switch component is at Figure 7 At T12 and T13 shown in the figure, the touch test signal is at a high level. As can be seen from the above content, the touch switch component can be switched to a conducting state according to the first port in a high level state. At this time, the touch execution component performs a simulated touch operation on the display screen according to the touch switch component in a conducting state. When the touch test signal received by the touch switch component is at Figure 7At T22, the rectangular pulse signal is at a low level. As can be seen from the above, the touch switch component can be switched to an off state according to the first port in a low level state, thereby causing the touch execution component to stop performing the above-mentioned simulated touch operation on the display screen according to the touch switch component in an off state. It can be seen that the control component can control the duration of the touch switch component switching to an on state according to the pulse width of the touch test signal output by the first port, thereby controlling the touch duration of the touch execution component performing the simulated touch operation on the display screen.
[0144] In general, in the embodiment of the present application, the control component can send a touch test signal with a pulse width equal to the above touch duration to the touch switch component in the above touch detection circuit, so as to control the touch switch component to switch to the on state for a duration equal to the above touch duration. Furthermore, the touch execution component can execute a simulated touch operation on the display screen for a duration equal to the above touch duration according to the duration when the touch switch component switches to the on state.
[0145] Step S105: if the test result returned by the brightness detection component is received, it is determined that the display screen has responded to the simulated touch operation, and the response time of the display screen in the i-th test is generated according to the receiving time of the test result.
[0146] In some feasible implementations, when testing the display screen, the touch detection circuit can obtain the touch time of performing a simulated touch operation on the display screen, and the response time of the display screen responding after being touched, so as to determine the touch response time of the display screen of the terminal device according to the above touch time and response time. Specifically, since the screen brightness value of the display screen is less than or equal to the brightness threshold when the above display screen is not touched, and at the same time, when the above display screen is touched and a display response occurs, the screen brightness value of the display screen is greater than the brightness threshold. Therefore, in order to determine the response time of the display screen display response, the touch detection circuit of the embodiment of the present application can detect whether the screen brightness value of the display screen is greater than the brightness threshold through the brightness detection component, and when the screen brightness value of the display screen is greater than the above brightness threshold, it is determined that the display screen has responded to the touch operation, and then the response time of the display screen is obtained. Among them, the above brightness threshold can be understood as the minimum value of the screen brightness value of the corresponding display screen when the display screen responds to the display. It can be seen from the above content that the brightness detection component is set on the touch surface of the display screen. When the display screen responds, the screen brightness value of the display screen increases. At this time, the screen brightness value is greater than the above brightness threshold. Further, the brightness detection component can return the corresponding test result to the control component when it detects that the screen brightness value of the display screen is greater than the above brightness threshold. It can be understood that the test result is used to characterize that the display screen responds after being touched, and is used to indicate that the screen brightness value of the above display screen is greater than the brightness threshold.
[0147] In general, when the display screen responds, the screen brightness value of the display screen is greater than the brightness threshold, and at this time, the brightness detection component can generate a test result and return it to the control component. It can be understood that since the test result indicates that the display screen has responded, the control component can obtain the response time according to the time when the test result is received.
[0148] Step S106: until the touch time and response time respectively corresponding to the N tests of the display screen are obtained, the touch response time of the display screen is determined according to the touch time and response time respectively corresponding to the N tests of the display screen.
[0149] In some feasible implementations, it can be seen from the above content that after the touch detection control component receives the test number N pushed by the business server, it can perform multiple tests on the touch response time of the display screen of the terminal device according to the test number, and continue to test the touch response time of the display screen when the number of tests is less than the above test number N, and stop testing after the number of tests is greater than or equal to the above test number N.
[0150] Specifically, the touch detection circuit can query and record the number of tests by the control component after completing each test. When the control component of the touch detection circuit inquires that the number of touch detection circuit tests is less than the above-mentioned number of tests N, the touch detection circuit continues to test the touch response time of the display screen. After the touch detection circuit completes the test, when the control component of the touch detection circuit inquires that the number of touch detection circuit tests is equal to or greater than the above-mentioned number of tests N, the touch detection circuit stops testing the touch response time of the display screen. It can be understood that when the touch detection circuit stops testing, the control component obtains the touch time and response time corresponding to the N tests respectively. Furthermore, the control component of the embodiment of the present application can determine the touch response time of the display screen based on the touch time and response time corresponding to the N tests of the display screen.
[0151] In some feasible implementations, when the number of tests N pushed by the service server to the touch detection circuit is 1, it means that the touch detection circuit only needs to test the display screen once. It is understandable that the control component of the touch detection circuit can stop the test after obtaining the touch time and response time corresponding to the first test. At this time, the control component can determine the touch response time of the display screen based on the time difference between the touch time and response time corresponding to the first test.
[0152] For details, please refer to Figure 8 , Figure 8 A signal diagram of a touch test circuit provided in an embodiment of the present application. In the first test, the second port of the control component receives a conduction indication signal sent by the touch execution component. Figure 8 As shown, it can be understood that the second port of the control component starts to receive the conduction indication signal at time t1. From the above content, it can be known that the time when the second port of the control component receives the conduction indication signal is the time when the touch execution component performs the simulated touch operation on the display screen. Therefore, the control component can determine the above touch time as t1 according to the time t1 when the second port receives the conduction indication signal.
[0153] It can be understood that in the first test, the third port of the control component receives the test result sent by the brightness detection component, such as Figure 8 As shown, it can be understood that the third port of the control component starts to receive the test result at time t2. From the above content, it can be known that the time when the third port of the control component receives the test result is the time when the display screen responds. To this end, the control component can determine the above response time as t2 based on the time t2 when the third port receives the test result.
[0154] It can be understood that, after the control component of the embodiment of the present application obtains the above touch time t1 and the response time t2, Figure 8 As shown, the touch response time t3 = t2 - t1 of the display screen can be determined according to the time difference between the touch time t1 and the response time t2.
[0155] In some feasible implementations, when the number of tests N pushed by the business server to the touch detection circuit is a positive integer greater than 1, it means that the touch detection circuit needs to test the display screen multiple times. At this time, the control component of the embodiment of the present application obtains the time difference corresponding to the above N tests based on the touch time and response time of the above N tests, and obtains the touch response time of the above display screen based on the time difference corresponding to the above N tests. Specifically, the specific implementation method of the control component of the embodiment of the present application obtaining the time difference corresponding to each test in the above N tests can be referred to as follows. Figure 8 The specific implementation shown is not described in detail in this application.
[0156] In some feasible implementations, after obtaining the time difference values corresponding to the above N tests, the control component can further average the time difference values corresponding to the above N tests to obtain an average value, and determine the above average value as the touch response time of the above display screen. For example, if the number of tests pushed by the above business server is 5 times, the control component can obtain the time difference values corresponding to the 5 tests as: t31, t32, t33, t34, t35. It can be understood that the control component can average the above 5 time differences to obtain the touch response time of the display screen as:
[0157]
[0158] In some feasible implementations, after obtaining the time difference values corresponding to the above-mentioned N tests, the control component can further determine the time difference value with the largest value among the time difference values corresponding to the above-mentioned N tests as the touch response time of the above-mentioned display screen. For example, if the number of tests pushed by the above-mentioned business server is 5 times, the control component can obtain the time difference values corresponding to the 5 tests as follows: t31, t32, t33, t34, t35. It is understandable that the control component can sort the above-mentioned 5 time difference values according to the numerical value: t31>t32>t33>t34>t35. It is understandable that the control component can determine the time difference value t31 with the largest value as the touch response time of the above-mentioned display screen.
[0159] In some feasible implementations, after obtaining the time difference values corresponding to the above-mentioned N tests, the control component can further determine the time difference value with the smallest value among the time difference values corresponding to the above-mentioned N tests as the touch response time of the above-mentioned display screen. For example, if the number of tests pushed by the above-mentioned business server is 5 times, the control component can obtain the time difference values corresponding to the 5 tests as: t31, t32, t33, t34, t35. It is understandable that the control component can sort the above-mentioned 5 time difference values according to the numerical value: t31>t32>t33>t34>t35. It is understandable that the control component can determine the time difference value t35 with the smallest value as the touch response time of the above-mentioned display screen.
[0160] In some feasible implementations, when the above-mentioned number of tests is multiple, after the touch detection circuit tests the display screen once, it can perform the next test on the display screen after the test time interval has passed. It is understandable that in different application scenarios, the refresh rate of the display screen of the terminal device is different. In order to improve the accuracy of the time consumption of the touch response of the test display screen, the touch detection circuit of the embodiment of the present application can adopt different test time intervals according to the different refresh rates of different display screens.
[0161] It is understandable that the above service server can push the test time interval to the touch detection circuit, that is, the test parameters pushed by the service server to the touch detection circuit include the test time interval. After receiving the test time interval, the touch detection circuit can perform the next test after each test is completed and the test time interval has passed.
[0162] For example, assuming that the above test time interval is k1, when the display screen is tested for the first time, the control module sends a touch test signal to the touch switch component in the touch detection circuit according to the above content to perform the first test on the display screen. At the same time, the control component can obtain the sending time k2 of the touch switch component sending the touch test signal when sending the touch test signal to the touch switch component in the touch detection circuit. Further, the control component can determine the start time of the second test for the display screen as k3=k2+k1 based on the sending time k2 and the test time interval k1.
[0163] It can be understood that when the time of the control component reaches the start time k3 of the second test, the control component sends the touch test signal through the touch switch component in the touch detection circuit of the first port to perform the second test on the display screen.
[0164] In the present application, when it is necessary to test the display screen in the terminal device, the control component in the touch detection circuit can pre-acquire the test parameters for the display screen, and the test parameters may include the number of tests N. In the i-th test (i.e., any test), the control component in the touch detection circuit can send a touch test signal to the touch switch component in the touch detection circuit to trigger the touch switch component to be in a conducting state. When the touch switch component is switched to the conducting state, the touch execution component set on the touch surface of the display screen will derive the charge of the touch surface of the display screen to automatically perform a simulated touch operation on the display screen. Therefore, the control component can determine the time when the touch switch component is switched to the conducting state as the time to perform the simulated touch operation on the display screen, i.e., the touch time corresponding to the i-th test. In the process of performing a simulated touch operation on the display screen, if the display screen responds to the simulated touch operation, the display screen will light up, i.e., the screen brightness value of the display screen will be greater than the brightness threshold. Therefore, the control component can send a brightness detection signal to the brightness detection component in the touch detection circuit to trigger the brightness detection component to detect the screen brightness value of the display screen. If the control component receives the test result returned by the brightness detection component, it is determined that the display screen has responded to the simulated touch operation, and the response time of the display screen in the i-th test is generated according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold. By analogy, the above steps are repeated until the touch time and response time corresponding to N tests are obtained, and the touch response time of the display screen can be determined according to the touch time and response time corresponding to N tests. It can be seen that in the present application, the simulated touch operation is automatically performed on the display screen through the touch detection circuit, and the touch time and response time of the display screen are automatically obtained. Then, based on the touch time and response time, the touch response time of the display screen is automatically determined, so as to realize the automated testing of the display screen without manual participation, improve the test accuracy and test efficiency of the touch response time of the display screen, and have strong applicability.
[0165] Based on the description of the above test method embodiment, the present application embodiment also discloses a touch detection device. The touch detection device can be applied to Figures 1 to 8 In the test method of the embodiment shown, the touch detection device can be used to perform the steps in the test method. Figures 1 to 5 The service server or touch detection circuit in the embodiment shown, that is, the touch detection device can be the above Figures 6 to 8 The execution subject of the test method in the embodiment shown. Fig. 9 , Fig. 9 A schematic diagram of the structure of a touch detection device provided in an embodiment of the present application. In an embodiment of the present application, the device can run the following modules:
[0166] Parameter acquisition module 1, used to acquire test parameters for the display screen of the terminal device, the test parameters including the number of tests;
[0167] The signal sending module 2 is used to send a touch test signal to the touch switch component in the touch detection circuit and send a brightness detection signal to the brightness detection component in the touch detection circuit during the i-th test; the touch test signal is used to trigger the touch switch component to switch to the on state, and the brightness detection signal is used to trigger the brightness detection component to detect the screen brightness value of the display screen; i is an integer less than or equal to N, and N is the number of tests;
[0168] A touch trigger module 3, used for triggering the touch execution component to extract the charge of the touch surface of the display screen according to the touch switch component being in the on state, so as to perform a simulated touch operation on the display screen; the touch execution component is located on the touch surface of the display screen;
[0169] A touch time acquisition module 4, used for generating the touch time of the display screen in the i-th test according to the time when the touch switch component is switched to the on state;
[0170] The response time acquisition module 5 is used to determine that the display screen has responded to the simulated touch operation when receiving the test result returned by the brightness detection component, and generate the response time of the display screen in the i-th test according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold;
[0171] The time-consuming determination module 6 is used to determine the touch response time of the above display screen according to the touch time and response time corresponding to the N tests of the above display screen after obtaining the touch time and response time respectively corresponding to the N tests of the above display screen.
[0172] The time-consuming determination module 6 includes:
[0173] The time difference acquisition unit 61 is used to acquire the time difference between the response time and the touch time corresponding to the i-th test; the time difference acquisition unit is also used to acquire the time difference values corresponding to the N tests respectively when the number of tests is multiple;
[0174] The time consumption calculation unit 62 is used to obtain the touch response time of the above display screen according to the time difference values corresponding to the above N tests;
[0175] The time consumption calculation unit 62 is further configured to determine the time difference corresponding to the i-th test as the touch response time of the display screen when the number of tests is 1.
[0176] The time-consuming calculation unit 62 includes:
[0177] The first calculation subunit 621 is used to average the time differences corresponding to the N tests to obtain an average value, and determine the average value as the touch response time of the display screen;
[0178] The second calculation subunit 622 is used to determine the time difference with the smallest value among the time differences corresponding to the N tests as the touch response time of the display screen;
[0179] The third calculation subunit 623 is used to determine the time difference with the largest value among the time differences corresponding to the N tests as the touch response time of the display screen.
[0180] The touch time acquisition module 4 includes:
[0181] The conduction indication unit 41 is used to determine that the touch switch component has switched to the conduction state and obtain the reception time of the conduction indication signal when receiving the conduction indication signal returned by the touch switch component; the conduction indication signal is sent when the touch switch component has switched to the conduction state;
[0182] A conduction time determination unit 42, used to determine the time of receiving the conduction indication signal as the time when the touch switch assembly switches to the conduction state;
[0183] The touch time determining unit 43 is used to determine the time when the touch switch component is switched to the on state as the touch time of the display screen.
[0184] The touch trigger module 3 is also used for:
[0185] According to the touch switch component being in the on state, the touch execution component is triggered to be connected to the ground terminal, so that the touch execution component exports the charge in the display screen to the ground terminal, so as to perform the analog touch operation on the display screen.
[0186] Wherein, the signal sending module 2 comprises:
[0187] A touch signal generating unit 21, configured to generate a touch test signal with a pulse width equal to the touch duration in the i-th test when the test parameters further include the touch duration;
[0188] The touch signal sending unit 22 is used to send a touch test signal with a pulse width equal to the above-mentioned touch duration to the touch switch component in the above-mentioned touch detection circuit; the touch test signal with a pulse width equal to the above-mentioned touch duration is used to trigger the touch switch component in the above-mentioned touch detection circuit to switch to the on state, and switch to the off state when the duration of the on state is equal to the above-mentioned touch duration.
[0189] Wherein, the touch trigger module 3 comprises:
[0190] The trigger unit 31 is used to trigger the display screen to display the first image through the derivation operation performed by the charge of the touch surface, so that the brightness detection component tests that the screen brightness value of the display screen is greater than the brightness threshold, and returns the test result that the brightness of the first image is greater than the brightness threshold;
[0191] The pause trigger unit 32 is used to trigger the display screen to display a second image by pausing the export operation of the charge on the touch surface, and the brightness of the second image is less than or equal to the brightness threshold; the touch execution component suspends the export operation of the charge on the touch surface when the touch switch component is switched to the disconnected state.
[0192] Wherein, the signal sending module 2 further includes:
[0193] The time interval determining unit 23 is used to obtain the sending time of sending the touch test signal to the touch switch component in the touch detection circuit for the i-1th test when the test parameters also include the test time interval during the i-th test;
[0194] A start time determination unit 24, configured to determine a start time of the i-th test for the display screen according to the sending time and the test time interval;
[0195] The touch signal sending unit 22 is further configured to send the touch test signal to the touch switch assembly in the touch detection circuit when the time reaches the start time of the i-th test.
[0196] In the present application, when it is necessary to test the display screen in the terminal device, the control component in the touch detection circuit can pre-acquire the test parameters for the display screen, and the test parameters may include the number of tests N. In the i-th test (i.e., any test), the control component in the touch detection circuit can send a touch test signal to the touch switch component in the touch detection circuit to trigger the touch switch component to be in a conducting state. When the touch switch component is switched to the conducting state, the touch execution component set on the touch surface of the display screen will derive the charge of the touch surface of the display screen to automatically perform a simulated touch operation on the display screen. Therefore, the control component can determine the time when the touch switch component is switched to the conducting state as the time to perform the simulated touch operation on the display screen, i.e., the touch time corresponding to the i-th test. In the process of performing a simulated touch operation on the display screen, if the display screen responds to the simulated touch operation, the display screen will light up, i.e., the screen brightness value of the display screen will be greater than the brightness threshold. Therefore, the control component can send a brightness detection signal to the brightness detection component in the touch detection circuit to trigger the brightness detection component to detect the screen brightness value of the display screen. If the control component receives the test result returned by the brightness detection component, it is determined that the display screen has responded to the simulated touch operation, and the response time of the display screen in the i-th test is generated according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold. By analogy, the above steps are repeated until the touch time and response time corresponding to N tests are obtained, and the touch response time of the display screen can be determined according to the touch time and response time corresponding to N tests. It can be seen that in the present application, the simulated touch operation is automatically performed on the display screen through the touch detection circuit, and the touch time and response time of the display screen are automatically obtained. Then, based on the touch time and response time, the touch response time of the display screen is automatically determined, so as to realize the automated testing of the display screen without manual participation, improve the test accuracy and test efficiency of the touch response time of the display screen, and have strong applicability.
[0197] In an embodiment of the present application, each module in the device shown in the above figure can be separately or all merged into one or several other modules to constitute, or a certain module (or modules) thereof can also be split into multiple smaller modules in function to constitute, which can achieve the same operation without affecting the realization of the technical effect of the embodiment of the present application. The above modules are divided based on logical functions. In practical applications, the function of a module can also be realized by multiple modules, or the function of multiple modules is realized by one module. In other feasible implementations of the present application, the above device can also include other modules. In practical applications, these functions can also be implemented with the assistance of other modules, and can be implemented by the collaboration of multiple modules, which is not limited here.
[0198] See also Fig.10 , Fig.10 Schematic diagram of a computer device provided in an embodiment of the present application. Fig.10 As shown, the computer device 1000 may be the above Figure 1-Figure 5 The business server or touch detection circuit in the corresponding embodiment. The computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.10 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0199] The network interface 1004 in the computer device 1000 can also be connected to the above Figure 5 The terminal device 300b in the corresponding embodiment is connected to the network, and the optional user interface 1003 may also include a display screen (Display) and a keyboard (Keyboard). Fig.10 In the computer device 1000 shown in the figure, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for developers; and the processor 1001 can be used to call the device control application stored in the memory 1005 to implement the above Figure 6 The test method in the corresponding embodiment.
[0200] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 6 The description of the test method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here.
[0201] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, Figure 6For details on the test methods provided in each step, please refer to the above Figure 6 The implementation methods provided by each step will not be repeated here.
[0202] The computer-readable storage medium may be the data processing device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0203] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0204] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0205] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.
[0206] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A testing method, characterized in that: The method comprises: Acquire test parameters for a display screen of a terminal device, wherein the test parameters include a test number; For the i-th test, a touch test signal is sent to a touch switch component in a touch detection circuit, and a brightness detection signal is sent to a brightness detection component in the touch detection circuit; the touch test signal is used to trigger the touch switch component to switch to an on state, and the brightness detection signal is used to trigger the brightness detection component to detect the screen brightness value of the display screen; i is an integer less than or equal to N, and N is the number of tests; According to the touch switch component being in the on state, the touch execution component is triggered to derive the charge of the touch surface of the display screen, so as to perform a simulated touch operation on the display screen; the touch execution component is located on the touch surface of the display screen; Generating the touch time of the display screen in the i-th test according to the time when the touch switch component is switched to the on state; If the test result returned by the brightness detection component is received, it is determined that the display screen has responded to the simulated touch operation, and the response time of the display screen in the i-th test is generated according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than the brightness threshold; Until the touch time and response time respectively corresponding to the N tests of the display screen are obtained, the touch response time of the display screen is determined according to the touch time and response time respectively corresponding to the N tests of the display screen.
2. The method according to claim 1, characterized in that Determining the touch response time of the display screen according to the touch time and the response time respectively corresponding to the N tests of the display screen includes: Obtaining the time difference between the response time and the touch time corresponding to the i-th test; If the number of tests is multiple, until the time difference values respectively corresponding to the N tests are obtained, the touch response time of the display screen is obtained according to the time difference values respectively corresponding to the N tests; If the number of tests is 1, the time difference corresponding to the i-th test is determined as the touch response time of the display screen.
3. The method according to claim 2, characterized in that The step of obtaining the touch response time of the display screen according to the time differences respectively corresponding to the N tests includes: Averaging the time differences corresponding to the N tests to obtain an average value, and determining the average value as the touch response time of the display screen; Or, the time difference with the smallest value among the time differences corresponding to the N tests is determined as the touch response time of the display screen; Or, the time difference with the largest value among the time differences corresponding to the N tests is determined as the touch response time of the display screen.
4. The method according to claim 1, characterized in that: Generating the touch time of the display screen according to the time when the touch switch component is switched to the on state includes: If a conduction indication signal returned by the touch switch component is received, it is determined that the touch switch component has been switched to the conduction state, and the reception time of the conduction indication signal is obtained; the conduction indication signal is sent when the touch switch component has been switched to the conduction state; Determine the time when the conduction indication signal is received as the time when the touch switch component is switched to the conduction state; The time for switching the touch switch component to the on state is determined as the touch time of the display screen.
5. The method according to claim 1, characterized in that The method of triggering the touch execution component to extract the charge in the display screen according to the touch switch component being in the on state, so as to perform a simulated touch operation on the display screen, comprises: According to the touch switch component being in the on state, the touch execution component is triggered to be connected to the ground terminal, so that the touch execution component exports the charge in the display screen to the ground terminal to perform the analog touch operation on the display screen.
6. The method according to claim 1, characterized in that The test parameters also include touch duration; For the i-th test, sending a touch test signal to the touch switch component in the touch detection circuit includes: For the i-th test, generating a touch test signal with a pulse width equal to the touch duration; A touch test signal with a pulse width equal to the touch duration is sent to the touch switch component in the touch detection circuit; the touch test signal with a pulse width equal to the touch duration is used to trigger the touch switch component in the touch detection circuit to switch to an on state, and to switch to an off state when the duration of the on state is equal to the touch duration.
7. The method according to claim 6, characterized in that The method further comprises: The derivation operation performed on the charge of the touch surface is used to trigger the display screen to display a first image, so that the brightness detection component tests that the screen brightness value of the display screen is greater than the brightness threshold, and returns the test result, and the brightness of the first image is greater than the brightness threshold; Suspending the derivation operation on the charge of the touch surface is used to trigger the display screen to display a second image, the brightness of the second image is less than or equal to the brightness threshold; the touch execution component suspends the derivation operation on the charge of the touch surface when the touch switch component is switched to the disconnected state.
8. The method according to claim 1, characterized in that The test parameters also include a test time interval; For the i-th test, sending a touch test signal to the touch switch component in the touch detection circuit includes: Obtaining, for the (i-1)th test, a sending time of sending the touch test signal to the touch switch component in the touch detection circuit; Determining a start time of an i-th test on the display screen according to the sending time and the test time interval; When the time reaches the start time of the i-th test, the touch test signal is sent to the touch switch component in the touch detection circuit.
9. A touch detection circuit, characterized in that: The circuit includes a control component, a touch switch component, a touch execution component and a brightness detection component; The control component is connected to the touch switch component and the brightness detection component respectively, the touch switch component is connected to the touch execution component, and the touch execution component and the brightness detection component are located on the touch surface of the display screen of the terminal device; The control component is used to send a touch test signal to the touch switch component to trigger the touch switch component to switch to an on state; and send a brightness detection signal to the brightness detection component to trigger the brightness detection component to detect the screen brightness value of the display screen; The touch execution component is used to extract the charge in the display screen when the touch switch component is switched to the on state, so as to perform a simulated touch operation on the display screen; The brightness detection component is used to detect the screen brightness value of the display screen, and when the display screen responds to the simulated touch operation, return a test result to the control component; the test result is used to indicate that the screen brightness value of the display screen is greater than a brightness threshold; The control component is also used to generate a touch time according to the time when the touch switch component is switched to the on state, generate a response time according to the reception time of the test result, and obtain the touch response time of the display screen according to the touch time and the response time.
10. The circuit according to claim 9, characterized in that The touch switch assembly includes a first switch, a second switch and an electromagnetic induction unit; The electromagnetic induction unit is connected to the first port of the control component, and the electromagnetic induction unit is coupled to the first switch and the second switch; one end of the first switch is connected to the second port of the control component, and the other end of the first switch is connected to the first ground terminal; one end of the second switch is connected to the touch execution component, and the other end of the first switch is connected to the second ground terminal; The electromagnetic induction unit is used to trigger the first switch and the second switch to switch to the on state according to the touch test signal; The first switch is used to connect the second port of the control component to the first ground terminal when switched to the on state, so as to generate a conduction indication signal and send it to the second port of the control component; the control component is used to determine that the touch switch component is switched to the on state when receiving the conduction indication signal; The second switch is used to connect the touch execution component to the second ground terminal when switched to the on state, so as to export the charge in the display screen to the second ground terminal, so as to perform the analog touch operation on the display screen.
11. The circuit according to claim 10, characterized in that The brightness detection component includes a photosensitive sensor; The signal end of the photosensor is connected to the third port of the control component, the power end of the photosensor is connected to the fourth port of the control component, and the photosensor is located in the central area of the display screen; The photosensor is used to receive a brightness detection signal sent by the fourth port of the control component through the power supply end, and detect the screen brightness value of the display screen according to the brightness detection signal; The photosensor is also used to generate the test result when the screen brightness value of the central area of the display screen is greater than the brightness threshold, and transmit the test result to the third port of the control component through the signal end.
12. A touch detection device, characterized in that: The device comprises: A parameter acquisition module, used to acquire test parameters for the display screen of the terminal device, wherein the test parameters include the number of tests; A signal sending module, used for sending a touch test signal to a touch switch component in a touch detection circuit and sending a brightness detection signal to a brightness detection component in the touch detection circuit during an i-th test; the touch test signal is used to trigger the touch switch component to switch to an on state, and the brightness detection signal is used to trigger the brightness detection component to detect a screen brightness value of the display screen; i is an integer less than or equal to N, and N is the number of tests; A touch trigger module, configured to trigger a touch execution component to extract the charge of the touch surface of the display screen according to the touch switch component being in the on state, so as to perform a simulated touch operation on the display screen; the touch execution component is located on the touch surface of the display screen; A touch time acquisition module, used for generating the touch time of the display screen in the i-th test according to the time when the touch switch component is switched to the on state; a response time acquisition module, configured to determine, upon receiving the test result returned by the brightness detection component, that the display screen has responded to the simulated touch operation, and to generate the response time of the display screen in the i-th test according to the reception time of the test result; the test result is used to indicate that the screen brightness value of the display screen is greater than a brightness threshold; The time-consuming determination module is used to determine the touch response time of the display screen according to the touch time and response time corresponding to the N tests of the display screen after obtaining the touch time and response time respectively corresponding to the N tests of the display screen.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.