A method and device for detecting touch screen failure
By storing and processing touch data in the mobile phone touch screen IC chip, and using the terminal operating system for fault detection, it solves the problems of time-consuming and labor-intensive detection and low success rate in the existing technology, and achieves fast and effective fault location and debugging. , improving product experience and quality.
Patent Information
- Application Number
- CN202010584145.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is time-consuming and labor-intensive when detecting and debugging mobile phone touch screen faults, has a low success rate, is difficult to locate small-probability problems, and relies on the supplier's manufacturer's tools and wired direct connection methods, which is inefficient.
By storing touch data in the setting register of the touch screen IC chip, calling the register interface function of the core layer to read and save it as a setting format file, and storing it in the storage area of the terminal, the terminal operating system is used for fault detection to avoid dependence. Factory tools and wired direct connection.
It achieves fast and effective touch screen fault detection, reduces labor costs and time, improves fault location efficiency and product experience, and reduces dependence on manufacturer tools.
Smart Images

Figure CN111752783B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal data processing, and in particular to a method and device for detecting touch screen failure. Background Art
[0002] Touch screen technology is widely used in public service areas and personal entertainment devices. Touch screen operation is required in almost all areas with displays, such as banks, hospitals, and airports. Especially with the increasing popularity of modern electronic consumer products, with portable devices and mobile phones as the main focus, the requirements for touch screen operation feasibility are getting higher and higher. In order to improve the touch screen experience and troubleshoot, new and effective debugging methods must be tried.
[0003] Technology is always improving, and progress comes from continuous innovation. People gradually became familiar with mobile phone touch screens in the era of resistive touch screens, and capacitive touch screens are widely used today. However, due to the limitations of capacitance sensing and integrated circuit (IC) chip storage space, capacitive touch screens cannot combine user usage habits and scenarios in real time, and cannot achieve the ideal experience effect. It is time-consuming and labor-intensive to debug the technology, so the user usage scenario data is recorded in real time as a development trend.
[0004] At present, the means of touch screen detection and effect debugging are completely dependent on the tools of suppliers and manufacturers. Manufacturers directly connect to the data capture tool through mobile phones to reproduce the problem in real time, capture data for analysis, and finally solve it. This solution is labor-intensive, time-consuming, and has a low success rate. It is also difficult to locate low-probability problems. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a method and device for detecting touch screen failure.
[0006] According to a first aspect of an embodiment of the present disclosure, a method for detecting a touch screen failure is provided, comprising:
[0007] Storing touch data in a setting register of a touch screen IC chip, the touch data including: touch change amount data;
[0008] Calling the register interface function of the core layer to read the touch data; saving the touch data as a set format file;
[0009] Storing the setting format file in a storage area of the terminal;
[0010] Reading the setting format file through the terminal operating system;
[0011] A touch screen fault is detected according to the setting format file.
[0012] In another embodiment, storing touch data in a setting register of a touch screen IC chip includes: storing touch data in a setting register of the touch screen IC chip every N interruptions, wherein the touch data includes touch data within the N interruptions, and N is an integer greater than zero.
[0013] In another embodiment, calling the register interface function of the core layer to read the touch data includes: calling the register interface function of the core layer to read the touch data at a set time interval, and the set time interval is the duration corresponding to the N interrupts.
[0014] In another embodiment, saving the touch data as a setting format file includes: starting a service program of a hardware abstraction layer, wherein the service program is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
[0015] In another embodiment, storing the setting format file in a storage area of a terminal includes: the storage area of the terminal includes M storage units, and storing the setting format file in one of the M storage units according to a set loop order of the M storage units, where M is an integer greater than 1.
[0016] In another embodiment, the method further comprises: determining the capacity of the storage unit according to the touch screen size and / or the preset time length;
[0017] Determining the capacity of the storage unit according to the touch screen size and / or the preset time length includes one of the following:
[0018] Determining the capacity of the storage unit is the product of a size coefficient corresponding to the touch screen size and a set capacity, and the touch screen size and the size coefficient are in a positively correlated linear relationship or a positively correlated nonlinear relationship;
[0019] Determining the capacity of the storage unit is the product of the coefficient corresponding to the preset time length and the set capacity;
[0020] The capacity of the storage unit is determined by multiplying the following three parameters: the product of the size coefficient corresponding to the touch screen size, the coefficient corresponding to the preset time length, and the set capacity.
[0021] In another embodiment, the reading the setting format file through the terminal operating system includes: reading the setting format file through a log function in the terminal operating system.
[0022] According to a first aspect of an embodiment of the present disclosure, there is provided a device for detecting a touch screen failure, comprising: a touch screen IC chip and a processor;
[0023] The touch screen IC chip includes a setting register, and the setting register is used to store touch data, and the touch data includes: touch change amount data;
[0024] The central processing chip is used to call the register interface function of the core layer to read the touch data; save the touch data as a setting format file; store the setting format file in a storage area of the terminal; read the setting format file through the terminal operating system; and detect touch screen failure according to the setting format file.
[0025] In another embodiment, the touch screen IC chip further includes: a processor, configured to store touch data in a setting register of the touch screen IC chip every N interruptions, wherein the touch data includes touch data within the N interruptions, where N is an integer greater than zero.
[0026] In another embodiment, the central processing chip includes: a calling module, used to call the register interface function of the core layer to read the touch data in the following manner: calling the register interface function of the core layer to read the touch data at a set time interval, and the set time interval is the duration corresponding to the N interrupts.
[0027] In another embodiment, the central processing chip includes: a saving module, used to save the touch data as a setting format file in the following manner: starting a service program of the hardware abstraction layer, the service program is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
[0028] In another embodiment, the central processing chip includes: a storage module, used to store the setting format file to the storage area of the terminal in the following manner: the storage area of the terminal includes M storage units, and the setting format file is stored in one of the M storage units according to the set loop order of the M storage units, where M is an integer greater than 1.
[0029] In another embodiment, the central processing chip further includes a capacity determination module, which is used to determine the capacity of the storage unit according to the touch screen size and / or the preset time length;
[0030] The capacity determination module includes one of the following modules:
[0031] A first determination module is used to determine that the capacity of the storage unit is the product of a size coefficient corresponding to the touch screen size and a set capacity, and the touch screen size and the size coefficient are in a positively correlated linear relationship or a positively correlated nonlinear relationship;
[0032] A second determination module, used to determine that the capacity of the storage unit is the product of a coefficient corresponding to a preset time length and a set capacity;
[0033] The third determination module is used to determine that the capacity of the storage unit is the product of the following three parameters: the product of the size coefficient corresponding to the touch screen size, the coefficient corresponding to the preset time length, and the set capacity.
[0034] In another embodiment, the central processing chip includes: a reading module, configured to read the setting format file through the terminal operating system in the following manner: reading the setting format file through a log function in the terminal operating system.
[0035] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by performing function settings at different layers of the terminal software system, the present disclosure can extract the touch data in the touch screen IC into the memory of the terminal, and further perform fault detection on the touch data in the memory, thereby conveniently and effectively completing touch screen fault detection without relying on the testing tools of the touch screen manufacturer or using a direct wired connection to the terminal to reproduce the problem.
[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0038] Figure 1 is a flow chart showing a method for detecting a touch screen failure according to an exemplary embodiment;
[0039] Figure 2 is a structural diagram of a device for detecting a touch screen failure according to an exemplary embodiment;
[0040] Figure 3 The diagram is a structural diagram of a method for detecting a touch screen failure according to an exemplary embodiment. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0042] The present disclosure provides a method for detecting a touch screen failure. Figure 1 , Figure 1 FIG. 1 is a flow chart showing a method for detecting a touch screen failure according to an exemplary embodiment. Figure 1 As shown, this method includes:
[0043] Step S11, storing touch data in a setting register of the touch screen IC chip, wherein the touch data includes touch variation data.
[0044] Step S12, calling the register interface function of the core layer to read the touch data; and saving the touch data as a set format file.
[0045] Step S13, storing the setting format file in a storage area of the terminal.
[0046] Step S14, reading the setting format file through the terminal operating system.
[0047] Step S15: detecting a touch screen fault according to the setting format file.
[0048] The terminal in the present method is a terminal with a touch screen, such as: a mobile phone, a tablet computer, a laptop computer, a handheld computer, a personal digital assistant (PDA), a portable media player (PMP), a navigation device, a wearable terminal, a smart bracelet, a pedometer, etc.
[0049] The capacitive touch screen has multiple rows and columns of physical capacitive touch sensors. These multiple rows and columns of interlaced sensors form a capacitive sensing point set. When the user's finger touches the touch screen, the capacitance of the capacitive sensing point in the capacitive sensing point set will change accordingly. Taking the capacitive sensing point set as a unit, the touch raw data rawDATA and the reference data baseDATA of the electrical signal are collected through the capacitive sensing point matrix, and the touch change data diff of the capacitive sensing point set is calculated, where: diff = rawDATA-baseDATA. In another embodiment, the touch data includes not only the touch change data, but also: touch raw data. In another embodiment, the touch data includes not only the touch change data, but also: touch raw data and reference data.
[0050] This method can extract the touch data in the touch screen IC into the memory of the terminal by setting functions in different layers of the terminal software system, and further perform fault detection on the touch data in the memory, so as to conveniently and effectively complete the touch screen fault detection without relying on the test tools of the touch screen manufacturer, and without using the terminal wired direct connection method to reproduce the problem. Compared with the method of retesting and debugging using the test tools of the touch screen manufacturer in the prior art, the detection efficiency can be greatly improved, and the fault location can be quickly located. In addition, this method can effectively solve low-probability events, reduce potential risks of products, improve product experience effects, and improve product quality.
[0051] The present disclosure also provides a method for detecting touch screen failure. In this method, Figure 1 The step S11 shown stores touch data in the setting register of the touch screen IC chip, including: storing touch data in the setting register of the touch screen IC chip every N interruptions, the touch data including the touch data within the N interruptions, and N is an integer greater than zero. For example: the value of N is 1, and 1 frame of touch data is stored in the setting register of the touch screen IC chip every 1 interruption. For example: the value of N is 5, and 5 frames of touch data are stored in the setting register of the touch screen IC chip every 5 interruptions. Among them, each frame of touch data includes the signal values of all sensing nodes of the entire touch screen at the same time. When the touch screen is a capacitive touch screen, this signal value is a capacitance value.
[0052] The present disclosure also provides a method for detecting touch screen failure. In this method, Figure 1 The step S12 shown calls the register interface function of the core layer to read the touch data, including: calling the register interface function of the core layer to read the touch data at a set time interval, and the set time interval is the duration corresponding to the N interrupts. This set time interval is determined by the interrupt clock of the touch screen IC chip and the value of N, for example: the interrupt interval duration corresponding to each interrupt is determined according to the interrupt clock of the touch screen IC chip, and the product of the interrupt interval duration and N is used as the set time interval. Prior to this step, the method also includes: setting a register interface function for reading the touch data in the register of the IC chip in the touch driver of the core layer (kernel).
[0053] The present disclosure also provides a method for detecting touch screen failure. In this method, Figure 1The step S12 shown saves the touch data as a setting format file, including: starting a service program of a hardware abstraction layer (HAL), wherein the service program is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
[0054] Enabling the touch function of the touch screen means turning on the terminal or lighting up the screen (lighting up the touch screen), and disabling the touch function of the touch screen means turning off the terminal or turning off the screen.
[0055] The setting format of this file is a fixed format set by the system default, or the setting format of this file is a format set according to the user's usage requirements, and the format required by the user is used according to the different needs of different users. The setting format is txt format, comma-separated values (CSV) format or JS object notation (JavaScript Object Notation, referred to as JSON) format, etc.
[0056] In another embodiment, a service program of a hardware abstraction layer (HAL) is started, and the service program includes a processing process, and the processing process is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
[0057] The present disclosure also provides a method for detecting touch screen failure. In this method, Figure 1 The step S13 shown stores the setting format file in the storage area of the terminal, including: the storage area of the terminal includes M storage units, and the setting format file is stored in one of the M storage units according to the set loop order of the M storage units, where M is an integer greater than 1.
[0058] The setting cycle order of the M storage units is a one-way cycle connection relationship. For example, when M is 3, the three storage units include: unit A, unit B and unit C. The setting cycle order of the three storage units is: unit A, unit B and unit C form a one-way connection ring structure. When it is necessary to store a setting format file, when the previous setting format file is stored in unit B, the setting format file to be stored is stored in unit C. When the previous setting format file is stored in unit C, the setting format file to be stored is stored in unit A.
[0059] The capacity of each storage unit is fixed, for example, the fixed capacity is 20 megabytes.
[0060] Alternatively, the capacity of the storage unit is determined according to the touch screen size and / or the preset time, specifically including one of the following methods:
[0061] Method 1: The capacity of the storage unit is the product of the size coefficient corresponding to the touch screen size and the set capacity. The touch screen size and the size coefficient are in a positively correlated linear relationship or a positively correlated nonlinear relationship. For example: when the touch screen size is 5 inches, the corresponding coefficient is 1; when the touch screen size is 5.8 inches, the corresponding coefficient is 1.6; when the touch screen size is 6 inches, the corresponding coefficient is 1.8.
[0062] Method 2: The capacity of the storage unit is the product of the coefficient corresponding to the preset duration and the set capacity. For example, when the preset duration is 1 minute, the corresponding coefficient is 1, and when the preset duration is 2 minutes, the corresponding coefficient is 2.
[0063] Method 3: The capacity of the storage unit is the product of the following three parameters: the product of the size coefficient corresponding to the touch screen size, the coefficient corresponding to the preset time length, and the set capacity.
[0064] By setting M storage units capable of circular buffering, as much historical touch data as possible can be effectively saved by means of circular buffering, thereby preventing the problem of previous touch data being overwritten by subsequent touch data when the fault detection algorithm is not completed in some special scenarios.
[0065] The present disclosure provides a method for detecting a touch screen failure. In this method, Figure 1 The step S14 shown reads the setting format file through the terminal operating system, including: reading the setting format file through the log function in the terminal operating system. For example: when the terminal operating system is an Android operating system (Android), this log function is an Android log function (Androidlog).
[0066] In an embodiment of the present disclosure, a device for detecting a touch screen failure is provided. Figure 2 , Figure 2 FIG. 1 is a flow chart of a device for detecting a touch screen failure according to an exemplary embodiment. Figure 2 As shown, the device includes: a touch screen IC chip 21 and a central processing chip 22;
[0067] The touch screen IC chip 21 includes a setting register 211, and the setting register is used to store touch data, and the touch data includes: touch original data and touch variation data;
[0068] The central processing chip 22 is used to call the register interface function of the core layer to read the touch data; save the touch data as a setting format file; store the setting format file in the storage area of the terminal; read the setting format file through the terminal operating system; and detect touch screen failure according to the setting format file.
[0069] In an embodiment of the present disclosure, a device for detecting a touch screen failure is provided. Figure 3 , Figure 3 FIG. 1 is a flow chart of a device for detecting a touch screen failure according to an exemplary embodiment. Figure 3 As shown, this device Figure 2 Based on the structure shown, the touch screen IC chip 21 further includes: a processor 212, which is used to store touch data in a setting register of the touch screen IC chip every N interrupts, wherein the touch data includes the touch data in the N interrupts, and N is an integer greater than zero.
[0070] In an embodiment of the present disclosure, a device for detecting touch screen failure is provided. In this device, the central processing chip 21 includes: a calling module, which is used to call the register interface function of the core layer to read the touch data in the following manner: calling the register interface function of the core layer to read the touch data at a set time interval, and the set time interval is the duration corresponding to the N interrupts.
[0071] In an embodiment of the present disclosure, a device for detecting a touch screen failure is provided. In this device, the central processing chip 21 includes: a saving module, which is used to save the touch data as a setting format file in the following manner: starting a service program of a hardware abstraction layer, the service program is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
[0072] In an embodiment of the present disclosure, a device for detecting a touch screen failure is provided. In this device, the central processing chip 21 includes: a storage module, which is used to store the setting format file in a storage area of a terminal in the following manner: the storage area of the terminal includes M storage units, and the setting format file is stored in one of the M storage units in a set cyclic order of the M storage units, where M is an integer greater than 1.
[0073] In an embodiment of the present disclosure, a device for detecting a touch screen failure is provided. In this device, the central processing chip 21 further includes a capacity determination module for determining the capacity of a storage unit according to the touch screen size and / or a preset duration;
[0074] The capacity determination module includes one of the following modules:
[0075] A first determination module is used to determine that the capacity of the storage unit is the product of a size coefficient corresponding to the touch screen size and a set capacity, and the touch screen size and the size coefficient are in a positively correlated linear relationship or a positively correlated nonlinear relationship;
[0076] A second determination module, used to determine that the capacity of the storage unit is the product of a coefficient corresponding to a preset time length and a set capacity;
[0077] The third determination module is used to determine that the capacity of the storage unit is the product of the following three parameters: the product of the size coefficient corresponding to the touch screen size, the coefficient corresponding to the preset time length, and the set capacity.
[0078] In the embodiment of the present disclosure, a device for detecting touch screen failure is provided. In the device, the central processing chip 21 includes: a reading module for reading the setting format file through the terminal operating system in the following manner: reading the setting format file through the log function in the terminal operating system.
[0079] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0080] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for detecting touch screen failure, It is characterized in that include: Storing touch data in a setting register of a touch screen IC chip, the touch data including: touch change amount data; Calling the register interface function of the core layer to read the touch data; saving the touch data as a set format file; Storing the setting format file in a storage area of the terminal; Reading the setting format file through the terminal operating system; Detecting touch screen failure according to the setting format file; Wherein, the storage area of the terminal includes M storage units, and the method further includes: determining the capacity of the storage unit according to the touch screen size and / or the preset time duration; Determining the capacity of the storage unit according to the touch screen size and / or the preset time length includes one of the following: Determining the capacity of the storage unit is the product of a size coefficient corresponding to the touch screen size and a set capacity, and the touch screen size and the size coefficient are in a positively correlated linear relationship or a positively correlated nonlinear relationship; Determining the capacity of the storage unit is the product of the coefficient corresponding to the preset time length and the set capacity; The capacity of the storage unit is determined by multiplying the following three parameters: the product of the size coefficient corresponding to the touch screen size, the coefficient corresponding to the preset time length, and the set capacity.
2. The method according to claim 1, It is characterized in that The step of storing touch data in a setting register of a touch screen IC chip includes: The touch data is stored in the setting register of the touch screen IC chip every N interruptions, and the touch data includes the touch data in the N interruptions, where N is an integer greater than zero.
3. The method according to claim 2, It is characterized in that The calling of the register interface function of the core layer to read the touch data includes: The register interface function of the core layer is called at a set time interval to read the touch data, and the set time interval is the duration corresponding to the N interrupts.
4. The method according to claim 1, It is characterized in that The step of saving the touch data as a file in a set format includes: A service program of the hardware abstraction layer is started, wherein the service program is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
5. The method according to claim 1, It is characterized in that The step of storing the setting format file in a storage area of the terminal includes: The setting format file is stored in one storage unit among the M storage units according to the setting cycle order of the M storage units, where M is an integer greater than 1.
6. The method according to claim 1, It is characterized in that The step of reading the setting format file through the terminal operating system includes: The setting format file is read through the log function in the terminal operating system.
7. A device for detecting touch screen failure, It is characterized in that include: Touch screen IC chips and processors; The touch screen IC chip includes a setting register, and the setting register is used to store touch data, and the touch data includes: touch change amount data; The central processing chip is used to call the register interface function of the core layer to read the touch data; save the touch data as a setting format file; store the setting format file in a storage area of the terminal; read the setting format file through the terminal operating system; and detect touch screen faults according to the setting format file; The storage area of the terminal includes M storage units, and the central processing chip also includes a capacity determination module for determining the capacity of the storage unit according to the touch screen size and / or the preset duration; The capacity determination module includes one of the following modules: A first determination module is used to determine that the capacity of the storage unit is the product of a size coefficient corresponding to the touch screen size and a set capacity, and the touch screen size and the size coefficient are in a positively correlated linear relationship or a positively correlated nonlinear relationship; A second determination module, used to determine that the capacity of the storage unit is the product of a coefficient corresponding to a preset time length and a set capacity; The third determination module is used to determine that the capacity of the storage unit is the product of the following three parameters: the product of the size coefficient corresponding to the touch screen size, the coefficient corresponding to the preset time length, and the set capacity.
8. The device according to claim 7, It is characterized in that The touch screen IC chip further includes: a processor, configured to store touch data in a setting register of the touch screen IC chip every N interruptions, wherein the touch data includes touch data in the N interruptions, where N is an integer greater than zero.
9. The device as claimed in claim 8, It is characterized in that The central processing chip includes: a calling module for calling the register interface function of the core layer to read the touch data in the following manner: calling the register interface function of the core layer to read the touch data at a set time interval, and the set time interval is the duration corresponding to the N interrupts.
10. The device according to claim 7, It is characterized in that The central processing chip includes: a saving module, which is used to save the touch data as a setting format file in the following manner: starting a service program of a hardware abstraction layer, wherein the service program is used to read the setting format file after the touch function of the touch screen is enabled, and stop reading the setting format file after the touch function of the touch screen is disabled.
11. The device according to claim 7, It is characterized in that The central processing chip includes: a storage module, which is used to store the setting format file in the storage area of the terminal in the following manner: storing the setting format file in one of the M storage units according to the set cycle order of the M storage units, where M is an integer greater than 1.
12. The device according to claim 7, It is characterized in that The central processing chip includes: a reading module, which is used to read the setting format file through the terminal operating system in the following manner: reading the setting format file through a log function in the terminal operating system.
