CN115016665A - Freeze-screen fault detection method, electronic device and computer-readable storage medium - Google Patents

Freeze-screen fault detection method, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN115016665A
CN115016665A CN202111096094.3A CN202111096094A CN115016665A CN 115016665 A CN115016665 A CN 115016665A CN 202111096094 A CN202111096094 A CN 202111096094A CN 115016665 A CN115016665 A CN 115016665A
Authority
CN
China
Prior art keywords
function
preset
data
touch
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111096094.3A
Other languages
Chinese (zh)
Other versions
CN115016665B (en
Inventor
韩帅
樊亮
冀焕霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Honor Device Co Ltd
Original Assignee
Beijing Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Honor Device Co Ltd filed Critical Beijing Honor Device Co Ltd
Priority to CN202111096094.3A priority Critical patent/CN115016665B/en
Publication of CN115016665A publication Critical patent/CN115016665A/en
Application granted granted Critical
Publication of CN115016665B publication Critical patent/CN115016665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a freeze-screen fault detection method, electronic equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring an operation log and touch data of the electronic equipment; the touch data is data generated by the electronic equipment according to touch operation of a user; if the running log comprises preset information and the touch data does not comprise data within a preset time length after the running time of the preset function, determining that the electronic equipment has a screen freezing fault; the preset information is used for representing that the electronic equipment runs the preset function. The method for detecting the screen freezing fault can detect the screen freezing fault, so that the specific reason of the screen freezing fault can be analyzed in the later stage, the performance of a display screen can be improved conveniently, and the user experience is improved.

Description

Freeze-screen fault detection method, electronic device and computer-readable storage medium
Technical Field
The application relates to the technical field of touch control, in particular to a frozen screen fault detection method, electronic equipment and a computer readable storage medium.
Background
With the rapid development of electronic technologies, touch technologies are widely applied to various electronic devices. For example, touch panels are integrated in display screens of devices such as mobile phones, tablet computers, wearable devices and teaching integrated machines, so that the devices have a touch function while displaying.
When the electronic device with the touch function is applied, a screen freezing fault may occur. The screen freezing fault means that the user performs touch operation and the display screen of the electronic device does not respond. The screen freezing fault can lead to poor user experience, and therefore the screen freezing fault is necessary to be detected, so that the occurrence reason of the frozen screen is analyzed, and the screen freezing problem is solved better.
Disclosure of Invention
The application provides a frozen screen fault detection method, electronic equipment and a computer readable storage medium, which can detect the frozen screen fault.
In a first aspect, the present application provides a freeze screen fault detection method, including:
acquiring an operation log and touch data of the electronic equipment; the touch data is data generated by the electronic equipment according to touch operation of a user; if the running log comprises preset information and the touch data does not comprise data within a preset time length after the running time of the preset function, determining that the electronic equipment has a screen freezing fault; the preset information is used for representing that the electronic equipment runs the preset function.
According to the screen freezing fault detection method provided by the first aspect, the screen freezing fault is detected and identified according to the operation log and the touch data by acquiring the operation log and the touch data of the electronic equipment, so that the specific reason of the screen freezing fault is conveniently analyzed in the later stage, the performance of the display screen is conveniently improved, and the user experience is improved. The method provided by the first aspect does not need manual intervention, can intelligently realize the detection of the screen freezing fault, and improves the detection efficiency. In addition, the method provided by the first aspect determines whether the operation log includes preset information, and determines whether the touch data includes data within a preset time length after the operation time of the preset function in the case that the operation log includes the preset information, so as to determine whether the electronic device has a screen freezing fault. That is, it is determined whether the electronic device generates data of the touch event within a preset time period after the preset function is operated. The method for detecting the screen freezing fault can be matched with a scene where the screen freezing occurs in actual use of a user, so that the screen freezing fault can be accurately identified, and the detection accuracy of the screen freezing fault is improved.
In one possible implementation manner, the preset information includes unlocking information, the unlocking information is used for representing the operation of the unlocking function of the electronic equipment, and the preset time includes a first preset time;
if the running log comprises preset information and the touch data does not comprise data within a preset time length after the running time of the preset function, determining that the electronic equipment has a screen freezing fault, comprising the following steps of:
and if the operation log comprises the unlocking information and the touch data does not comprise data within a first preset time after the operation time of the unlocking function, determining that the screen freezing fault occurs in the electronic equipment.
The method for detecting the screen freezing fault in the implementation mode is matched with a scene in which a user cannot execute any touch operation due to the fact that the screen is frozen after unlocking in an actual application scene, and the screen freezing fault after unlocking can be accurately detected.
In one possible implementation, the first preset time period is 10s to 15 s.
In one possible implementation, the unlocking function is a biological unlocking function.
In one possible implementation, the unlocking function includes at least one of a fingerprint unlocking function, a face unlocking function, a lip movement unlocking function, an iris unlocking function, and a voice-print unlocking function.
In a possible implementation manner, the preset information includes reminding information, the reminding information is used for representing that the electronic device operates a reminding function, and the preset duration includes a second preset duration;
if the running log comprises preset information and the touch data does not comprise data within a preset time length after the running time of the preset function, determining that the electronic equipment has a screen freezing fault, comprising the following steps of:
and if the running log comprises the reminding information and the touch data does not comprise data within a second preset time after the running time of the reminding function, determining that the electronic equipment has the screen freezing fault.
In one possible implementation, the reminding function includes at least one of an alarm clock reminding function, a timing reminding function, a schedule reminding function, and an incoming call reminding function.
In one possible implementation, the incoming call alert function includes at least one of a voice incoming call alert function and a video incoming call alert function.
The method for detecting the screen freezing fault provided in the implementation mode is matched with a scene that the screen freezing occurs when the electronic equipment operates the reminding function in an actual application scene, so that a user cannot execute related operations (such as closing reminding or answering a call and the like), and the screen freezing fault occurring when the operation reminding function is operated can be accurately detected.
In one possible implementation, the second preset time period is 60s to 65 s.
In a possible implementation manner, if the operation log includes preset information and the touch data does not include data within a preset time period after the operation time of the preset function, it is determined that the electronic device has a screen freeze fault, including:
determining whether the running log comprises preset information or not; if the running log comprises the preset information, determining the running time of the preset function; determining whether the touch data comprises data within a preset time length after the operation time of a preset function; and if the touch data comprises data within a preset time after the operation time of the preset function, determining that the electronic equipment has a screen freezing fault.
In a possible implementation manner, determining whether the touch data includes data within a preset time length after the operation time of the preset function includes:
determining whether the touch data comprises data of a pressing event within a preset time length after the operation time of a preset function; the data of the press-down event is data generated by the electronic device according to a press-down operation of the user.
Alternatively, the data of the pressed event may be an identification field of the pressed event, for example, "BTN _ TOUCH DOWN".
In the implementation mode, the information of the press event is data generated by the electronic equipment according to press operation executed by a user, and the information of the press event can uniquely identify one touch event, so that the data of the touch event can be more accurately identified by identifying the information of the press event in the touch data, whether a freeze screen fault occurs or not can be more accurately determined, and the detection accuracy of the freeze screen fault is improved.
In a second aspect, the present application provides an apparatus, which is included in an electronic device, and which has a function of implementing the behavior of the electronic device in the first aspect and the possible implementation manners of the first aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. Such as an acquisition module or unit, a detection module or unit, etc.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and an interface; the processor, the memory and the interface cooperate with each other to enable the electronic device to perform any one of the methods of the first aspect.
In a fourth aspect, the present application provides a chip comprising a processor. The processor is adapted to read and execute the computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof.
Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
Further optionally, the chip further comprises a communication interface.
In a fifth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the processor is enabled to execute any one of the methods in the technical solutions of the first aspect.
In a sixth aspect, the present application provides a computer program product comprising: computer program code for causing an electronic device to perform any of the methods of the first aspect when the computer program code runs on the electronic device.
Drawings
Fig. 1 is a schematic structural diagram of an example of an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of an exemplary software architecture of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic view illustrating a touch control process of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating an example of a process of acquiring touch data according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart illustrating an example of obtaining an application execution log according to an embodiment of the present application;
FIG. 6 is a schematic flow chart illustrating an exemplary method for freeze screen failure detection according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating an example of data for a press event provided by an embodiment of the present application;
FIG. 8 is a diagram illustrating data for an example lift event provided by an embodiment of the present application;
FIG. 9 is a diagram illustrating an example of data of a mobile event according to an embodiment of the present disclosure;
fig. 10 is a schematic view of an application scenario in which a screen freeze failure occurs after a mobile phone is unlocked according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an example of an interface for a freeze screen failure of a mobile phone according to an embodiment of the present disclosure;
fig. 12 is a schematic view of an application scenario of an example of a mobile phone having a screen freezing fault when an alarm clock rings according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an example freeze-screen failure detection apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.
At present, display screens of many electronic devices have a touch function, that is, the display screens are touch display screens. Touch display screens are also known as touch display screens, touch screens or touch screens. The Touch display screen includes a Touch Panel (TP) and a display panel. Among them, the touch panel is also referred to as a touch panel, a touch sensor, or the like. When a user uses the electronic equipment, a screen freezing fault occurs probabilistically. When the screen freezing fault occurs, the picture of the electronic equipment is frozen, the user executes any touch operation, and the display screen does not respond.
One reason for the screen freezing fault is that the display screen itself has a fault, for example, the power-on timing sequence and logic of the touch panel and the display panel are abnormal, which causes the touch panel to be powered on normally, and the touch panel cannot report a touch event to the frame, which further causes the display screen to have no response, and the screen freezing fault occurs.
In general, when the electronic device has a screen freezing fault, the electronic device needs to be forcibly shut down or restarted for use, so that the user experience is poor. Therefore, it is necessary to detect the screen freezing fault of the electronic equipment, so as to analyze and process the screen freezing condition, solve the screen freezing problem and improve the user experience. The embodiment of the application provides a screen freezing fault detection method, aims at detecting the screen freezing caused by the display screen self fault of the electronic equipment, so that the later stage of analysis of specific reasons of the screen freezing fault is facilitated, the performance of the display screen is effectively improved, and the user experience is improved.
Before explaining the freeze screen fault detection method provided by the embodiment of the application, a structure of an electronic device with a touch screen and a process of the electronic device for realizing a touch function are firstly explained.
Optionally, the electronic device may be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, which may have a touch display screen.
Fig. 1 is a schematic structural diagram of an example of an electronic device 100 according to an embodiment of the present disclosure. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
It is understood that in the embodiment of the present application, the electronic device 100 may wirelessly communicate with other electronic devices such as a server through the wireless communication module 160 to send information such as a log file to the server.
The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1. Alternatively, the still image or video captured by the camera 193 may be stored in a memory, or may be directly applied to an application program, for example, to unlock a human face or to recognize a human face.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into analog audio signals for output, and also used to convert analog audio inputs into digital audio signals. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
For example, the electronic device 100 may utilize the microphone 170C and the audio module 170 and the application processor to perform voiceprint recognition, so as to unlock a voiceprint, access an application lock, take a voiceprint photograph, and the like.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint characteristics to unlock a fingerprint, access an application lock, photograph a fingerprint, answer an incoming call with a fingerprint, and so on.
A touch sensor (i.e., touch panel) 180K. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 constitute a touch display screen. The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor 180K may generate a touch signal in response to a touch operation of a user, and transmit the touch signal to the application processor to generate touch data. Visual output associated with the touch operation may be provided via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the electronic device 100 at a different position than the display screen 194.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a hierarchical architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scrollbar text in a status bar at the top of the system, such as a notification of a running application in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
In addition, the application framework layer also includes related modules for reporting and managing events, such as an Event monitoring (Event Hub) module, an input reader (input reader) module, an input dispatcher (input dispatcher) module and the like.
The Android runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. In addition, the kernel layer may further include a touch signal processing module, a touch data generation module, a log (log) generation module, a communication module, and the like. The communication module may be a wired communication module or a wireless communication module.
For example, fig. 3 is a schematic touch flow diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 3, the structures and modules involved in implementing the touch function of the electronic device include: the touch panel 201 of the hardware layer, the touch signal processing module 202 of the kernel layer, the touch data generating module 203 and the log generating module 207, the event monitoring module 204 of the application framework layer, the input reading module 205 of the application framework layer and the input distributing module 206 of the application framework layer, and the like.
The user performs a touch operation through the touch panel 201. The touch operation includes, but is not limited to, a touch operation, a click operation, a slide operation, a long press operation (also referred to as a long press operation), and the like. The touch panel 201 receives a touch operation of a user, generates a touch signal, and reports the generated touch signal to the touch signal processing module 202 of the kernel layer. The touch signal processing module 202 receives the touch signal, packages the touch signal, and outputs the packaged touch signal to the touch data generating module 203 of the kernel layer. Optionally, the touch signal processing module 202 may report the encapsulated touch signal to the touch data generating module 203 through an I2C interface, an MIPI interface, or an SPI interface. The touch data generation module 203 performs normalization processing, data calibration, and other processing on the touch signal, and further generates data (input.c) of a touch event.
It is understood that a user performs a touch operation to generate one or more touch events. One touch event corresponds to the operation of a touch object (e.g., a finger or a stylus), and one touch event corresponds to a set of data. For example, the user performs a slide-up operation on the screen, and may slide up with one finger or with multiple fingers. And generating a touch event corresponding to a group of data by the operation of each finger on the screen.
Each touch event includes at least a press DOWN (DOWN) event and a lift UP (UP) event. The pressing event corresponds to a pressing operation of a finger or a stylus pen of the user, namely the finger or the stylus pen of the user is in contact with the screen. The lift-off event corresponds to a lift-off operation of a user's finger, stylus pen, or the like, that is, the user's finger, stylus pen, or the like leaves the screen. Additionally, the touch events may also include one or more and MOVE (MOVE) events. The movement event is also called a movement point, and corresponds to a contact state of a user's finger or a stylus pen with the screen or an operation of moving along the screen. It is to be appreciated that a movement event of a touch event is temporally between a press event and a lift event in the touch event.
The touch data generation module 203 reports the generated data of the touch event to the event monitoring module 204 and the input reading module 205 of the application architecture layer for processing. After being processed by the event monitoring module 204 and the input reading module 205, the input dispatcher (input dispatcher) module 206 dispatches the data to a corresponding application program of the application program layer, and the application program makes a corresponding response.
Meanwhile, after the touch data generation module 203 generates the data of the touch event, the data of the touch event may be further sent to the log generation module 207. The log generating module 207 generates a log file according to the data of the touch event. Optionally, the touch data generating module 203 may send the data of the touch event to the log generating module 207 in real time, so that the log generating module 207 generates a log file; that is, each time the touch data generation module 203 generates data of one touch event, the touch data generation module 203 sends the data of the touch event to the log generation module 207, and the log generation module 207 writes part or all of the data of the touch event into a log file. The log file may be stored in a memory of the electronic device or may be transmitted to another electronic device, for example, to a server.
In addition, it can be understood that, in the running process of each application program of the electronic device, the log generation module generates a corresponding application program running log, that is, app. Moreover, the electronic device software system also generates a system operation log, such as kmsgcat.
The method for detecting the freeze-screen fault is used for detecting the freeze-screen fault of the electronic equipment with the structure shown in the figures 1 to 3. Specifically, the screen freezing fault detection method is used for detecting the screen freezing fault according to the operation log and the touch data of the electronic equipment. The touch data includes data of a touch event, that is, data (input.c) of the touch event generated by the touch data generation module 203 shown in the embodiment of fig. 3.
It should be noted that the method for detecting a freeze screen fault provided in the embodiment of the present application may be applied to an electronic device. The electronic device may be an electronic device having a touch function, that is, capable of generating touch data, for example, a terminal device, and the structure of the terminal device may be as shown in fig. 1 to fig. 3; the electronic device may also be another electronic device, such as a server, that is communicatively connected to the electronic device that generates the touch data. When the method provided by the embodiment of the application is applied to the terminal device, optionally, the terminal device can acquire the touch data from the kernel layer in real time and acquire the running log from the application program layer and/or the kernel layer to detect the freeze screen fault. Optionally, the terminal device may also store the generated touch data and the operation log in a memory, and the terminal device may acquire the touch data from the memory and detect the freeze screen fault according to the touch data.
When the method provided by the embodiment of the application is applied to the server, the server can be a cloud server or a physical server. Optionally, the terminal device may upload the operation log to the server. Meanwhile, the terminal equipment can upload the generated touch data to the server, and the server processes the running log and the touch data so as to detect the screen freezing fault.
For convenience of description, the following embodiments all take an example in which the freeze screen fault detection method is applied to a server, and take an electronic device that generates touch data as a terminal device, specifically take a mobile phone as an example for description.
First, with reference to fig. 1 to fig. 3, a description is given of a flow of acquiring touch data and an operation log by a server before a freeze screen failure detection method. It can be understood that, in this embodiment, each module represents a module for implementing a certain function, which may be implemented by hardware, software, or a combination of software and hardware, and this application is not limited in any way.
For example, fig. 4 is a schematic diagram of a flow chart for acquiring touch data according to an embodiment of the present disclosure. It can be understood that after the mobile phone generates the touch data, the touch data can be uploaded to the server in the form of a log file. In this embodiment, the log file containing the touch data is referred to as a first log file. The following description is made with reference to fig. 4:
as shown in fig. 4, the process of obtaining touch data by the server may include:
s401, a user executes touch operation through a touch panel of the mobile phone.
S402, the touch panel receives touch operation of a user and generates a touch signal.
And S403, the touch panel reports the generated touch signal to the touch signal processing module.
S404, the touch signal processing module receives the touch signal and packages the touch signal.
S405, the touch signal processing module sends the packaged touch signal to the touch data generation module.
S406, the touch data generation module performs normalization processing, data calibration and other processing on the packaged touch signal to generate touch data.
And S407, the touch data generation module sends the generated touch data to the first log generation module.
S408, the first log generation module generates a first log file according to the touch data.
That is, the first log generation module writes part or all of the data of each touch event into the log file. In other words, the first log file includes touch data, and the touch data may include part or all of data of a touch event, for example, data of a press event and data of a lift event in the touch event; or, the touch event includes data of a press event, data of a lift event, and data of a move event.
S409, the first log generation module sends the first log file to the communication module.
S4010, the communication module sends the first log file to the server.
Optionally, the first log generating module may package and send the generated first log file to the communication module periodically, and the communication module sends the first log file to the server. Optionally, the first log generation module may also package and send the first log file to the server when the data volume in the first log file reaches a preset data volume according to the size of the first log file.
S4011, the server receives the first log file sent by the communication module.
For example, fig. 5 is a schematic flowchart of acquiring an application execution log according to an embodiment of the present application. In this embodiment, the log file containing the application program execution log is referred to as a second log file. As shown in fig. 5, the process of obtaining the application program running log by the server may include:
and S501, running a preset function by the application program of the mobile phone.
Optionally, the application program of the mobile phone may passively run the preset function in response to the operation of the user, or actively run the preset function according to the preset of the system or the user.
And S502, in the process of running the preset function of the application program, sending the data of the program running to a second log generation module.
S503, the second log generation module generates a second log file according to the data of the program operation.
The second log file comprises an application program running log which comprises part or all of data of program running. For example, the application execution log may include information such as a preset function execution identifier, a time when the preset function is executed (hereinafter, referred to as an execution time of the preset function), and related data generated by the execution function. Taking a time application as an example, the application includes an alarm clock function, a world clock function, a stopwatch function, a timer function, and the like. Taking the alarm clock function as an example, the application running log may include an alarm clock function running identifier, running time of the alarm clock, and the like. The alarm clock function operation mark can be represented by a key statement. For example, the second log file may include a key statement "ihwdeskcock: AlarmReceiver info: onReceive: ACTION ═ ALARM _ ALERT _ ACTION" that characterizes the mobile phone as running an ALARM clock function. In addition, the second log file may further include time information corresponding to the key statement, which represents the time when the alarm clock is operated by the mobile phone this time.
S504, the second log generation module sends the second log file to the communication module.
And S505, the communication module sends the second log file to a server.
The method for sending the second log file by the communication module is similar to that of the first log file, and is not described herein again.
S506, the server receives the second log file sent by the communication module.
Similarly, in the running process of the software system of the mobile phone, the system running log may also be generated with reference to the process of fig. 5, so as to form a third log file, and the third log file is uploaded to the server, which is not described herein again.
After receiving the first log file, the second log file and the third log file, the server may detect a freeze screen fault according to the touch data in the first log file, the application program operation log in the second log file, the system operation log in the third log file, and the like.
In the following embodiment, based on the structures and the flows shown in fig. 1 to fig. 5, with reference to the accompanying drawings and application scenarios, a specific process of the server detecting the freeze-screen failure according to the touch data in the first log file, the operation log in the second log file, and the system operation log in the third log file will be described.
Fig. 6 is a schematic flowchart of an example of a freeze-screen failure detection method provided in an embodiment of the present application, where the method includes:
s601, acquiring an operation log and touch data of the terminal equipment; the touch data is data generated by the terminal device according to the touch operation of the user.
Optionally, the running log may be an application running log in the second log file, or may be a system running log in the third running log.
Optionally, the touch data may be data in the first log file. As described above, the touch data may include data of a press event, data of a lift event, and data of a move event among the touch events. Optionally, the data of the press event in each touch event may include a hit coordinate (including an abscissa and an ordinate, i.e., an X coordinate and a Y coordinate) of the press event, a hit time and an event identifier of the press event, and the like. The event identifier may also be referred to as an event number, a Tracking ID, or the like, and is used to represent a unique identity of the touch event. One touch event corresponds to one event identifier, and a press-down event and a lift-up event in one touch event correspond to the same event identifier. In other words, one touch event corresponds to a pair of press/lift events, and the event identifiers are the same one press event and one lift event as a pair of press/lift events.
The data of the lift-off event in each touch event may include the hit coordinates (including the abscissa and the ordinate, i.e., the X coordinate and the Y coordinate) of the lift-off event, the hit time of the press-down event, the event identifier, and the like.
The data of each movement event in each touch event may include hit coordinates (including abscissa and ordinate, i.e., X coordinate and Y coordinate) of the movement event, hit time and event identification of the movement event, and the like.
The event identifier of the pressing event, the event identifier of the lifting event and the event identifier of the moving event in the same touch event are the same.
Optionally, the data of the press event, the data of the lift event, and the data of the move event may further include other data such as a report rate, which is not limited in this embodiment of the present application.
Fig. 7 is a schematic diagram of data of an example of a pressing event according to an embodiment of the present application. As shown in fig. 7, "BTN _ TOUCH DOWN" shown at 704 characterizes the set of data as data of a press-DOWN event. The data of the press event includes the press event's hit coordinates: x-coordinate 701 and Y-coordinate 702. The data of the press event further includes an event identifier 703, a time point 705 of the press event, a point rate 706, and the like.
For example, fig. 8 is a schematic diagram of data of an example of a lift-off event according to an embodiment of the present application. As shown in FIG. 8, "BTN _ TOUCH UP" shown at 804 characterizes the set of data as data for a lift-off event. The data of the lift-off event comprises the newspaper point coordinates of the lift-off event: x-coordinate 801 and Y-coordinate 802. The lift-off event data also includes an event identification 803, a point time 805 for the lift-off event, and a point rate 806, among other things.
Fig. 9 is a schematic diagram of data of an example of a mobile event according to an embodiment of the present disclosure. As shown in fig. 9, the data of the movement event includes the hit coordinates of the movement event: x-coordinate 901 and Y-coordinate 902. The data of the mobile event further includes an event identifier 903, a time point report 905 of the mobile event, a time point report rate 906, and the like.
S602, determining whether the running log comprises preset information or not; the preset information is used for representing that the terminal equipment operates a preset function.
Optionally, the preset information may be, for example, a preset keyword, a preset key sentence, a preset identifier, and the like in the running log. The server can search whether preset keywords, preset key sentences or preset marks exist in the running log or not.
The preset information represents that the terminal equipment runs a preset function. Optionally, the preset function may be a function that the terminal device operates when the display screen is bright, and after the preset function is operated, the user further executes touch operation. In one embodiment, the preset function may include at least one of an unlocking function or a reminding function, etc. It can be understood that the user performs an unlocking operation on the terminal device, and after the terminal device runs the unlocking function, the user generally performs a further touch operation. Similarly, after the terminal device runs the reminding function, the user generally further runs a touch operation to close the reminding function or respond to the reminding function. If the terminal equipment runs the unlocking function and/or the reminding function and the like, and after the preset functions are carried out, no touch event data exists, and the screen freezing fault occurs probably. After determining that the unlocking function and/or the reminding function and the like are/is operated by the terminal equipment, the embodiment determines whether data of the touch event exist or not, so as to determine whether the screen freezing fault occurs in the terminal equipment or not.
Optionally, the preset function may be a function that is executed after the terminal device responds to an operation of a user or responds to communication information of other devices, that is, the preset function is a function that is executed passively by the terminal device. Such as an unlock function or an incoming call alert function, etc.
Optionally, the preset function may also be a function of the terminal device actively operating. That is, the preset function is a function that the terminal device operates at a certain time according to a preset program. Such as an alarm clock reminder function.
And S603, if the running log comprises the preset information, determining the running time of the preset function.
It can be understood that the operation time of the preset function is the time when the terminal device operates the preset function. Optionally, the time corresponding to the preset information may be searched in the operation log to obtain the operation time of the preset function.
S604, determining whether the touch data comprises data within a preset time length after the operation time of the preset function.
That is, it is determined whether data of a touch event is generated within a preset time period after the terminal device operates the preset function.
Optionally, the touch data may be searched to determine whether there is a touch event whose reporting time is within a preset time after the operation time of the preset function. Specifically, the report time and the keywords, the key sentences or the identifiers and the like can be searched in the touch data to determine whether a touch event exists within a preset time after the operation time of the preset function. For example, whether an identification field (BTN _ TOUCH DOWN) of a press-DOWN event and/or an identification field (BTN _ TOUCH UP) of a lift-UP event exist in data within a preset time length after the running time of a preset function at the time of reporting point is searched.
The preset duration can be set according to actual requirements. Specifically, the value of the preset duration may be set according to a preset function and in combination with the user application scenario.
S605, if the touch data does not include data within a preset time after the operation time of the preset function, determining that the screen freezing fault occurs in the terminal equipment.
As described above, after the terminal device runs the preset function, the user generally performs the related touch operation. And if the terminal equipment does not receive the data of the touch event within the preset time length, determining that the screen freezing fault occurs in the terminal equipment.
Optionally, after it is determined that the screen freezing fault occurs in the terminal device, the relevant data of the touch panel before and/or after the operation time of the preset function, for example, an operation log on a touch chip (TPIC) side, may be obtained, so as to analyze the cause of the screen freezing fault.
According to the screen freezing fault detection method provided by the embodiment, the screen freezing fault is detected and identified according to the operation log and the touch data by acquiring the operation log and the touch data of the terminal device, so that the specific reason of the screen freezing fault is conveniently analyzed in the later stage, the performance of the display screen is conveniently improved, and the user experience is improved. The method provided by the embodiment does not need manual intervention, can intelligently realize the detection of the screen freezing fault, and improves the detection efficiency. In addition, the method provided by the embodiment of the application determines whether the operation log includes the preset information or not, and determines whether the touch data includes data within a preset time after the operation time of the preset function or not under the condition that the operation log includes the preset information, so as to determine whether the terminal equipment has the screen freezing fault or not. That is, it is determined whether the terminal device generates data of the touch event within a preset duration after the terminal device operates the preset function. The method for detecting the screen freezing fault can be matched with a scene where the screen freezing occurs in actual use of a user, so that the screen freezing fault can be accurately identified, and the detection accuracy of the screen freezing fault is improved.
In the following embodiment, the preset function is used as the unlocking function and the reminding function, and the process of detecting the screen freezing fault is elaborated in detail respectively.
Fig. 10 is a schematic view of an application scenario in which a freeze-screen fault occurs after a mobile phone is unlocked according to an embodiment of the present application. As shown in fig. 10, in the case of locking the screen of the mobile phone, if the user needs to operate the mobile phone, the mobile phone is first unlocked. Optionally, the user may perform an unlocking operation by fingerprint unlocking, face unlocking, or the like. After unlocking, the user further executes touch operation. However, when a freeze screen fault occurs after the user unlocks the mobile phone, the picture of the mobile phone is frozen, and the user cannot perform any operation, for example, the user cannot perform a slide-up operation after the face of the user is unlocked, and therefore cannot enter the mobile phone interface, as shown in fig. 11.
For such an application scenario, on the basis of the above embodiment, the method for detecting the freeze-screen fault provided by the embodiment can detect the freeze-screen fault occurring after unlocking. In this embodiment, the preset information includes unlocking information, the preset function includes an unlocking function, and the unlocking information is used for representing an unlocking function of the terminal device. The preset duration comprises a first preset duration. In this embodiment, if the operation log includes the unlocking information and the touch data does not include data within a first preset time period after the operation time of the unlocking function, it is determined that the screen freezing fault occurs in the terminal device.
Alternatively, the first preset time period may be 10s to 15 s.
Optionally, the unlocking function may be a biological unlocking function. For example, the unlocking function may include at least one of a fingerprint unlocking function, a human face unlocking function, a lip movement unlocking function, an iris unlocking function, a voiceprint unlocking function, and the like.
Taking the unlocking function as fingerprint unlocking and the first preset time length of 10s as an example, in a specific embodiment, the server may identify a key statement "fpc _ fingerprint _ hal: _ identification: result2 ". The key sentence is used for representing that the fingerprint unlocking of the terminal equipment is successful. And if the server identifies the key sentence, determining the running time (marked as time A) of the fingerprint unlocking function. The server determines whether the touch data contains the data of the touch event with the hit time within 10s after the time A, namely the server determines whether the touch data contains the data of the touch event with the hit time between the time A and the time A +10 s. Optionally, the server may identify, in the TOUCH data, an identification field "BTN _ TOUCH DOWN" of a press event whose hit time is between time a and time a +10 s. And if the identification field 'BTN _ TOUCH DOWN' of the press-DOWN event between the A moment and the A +10s moment at the reporting moment is not identified, reporting the freeze-screen fault. The identification field of the pressing event is an event generated by the terminal device according to the pressing operation executed by the user, and the identification field of the pressing event can uniquely identify one touch event, so that the data of the touch event can be identified more accurately by identifying the identification field of the pressing event in the touch data, whether the screen freezing fault occurs or not can be determined more accurately, and the detection accuracy of the screen freezing fault can be improved.
In another specific embodiment, the server may identify key sentences "FaceDTSvc callback authcode: 1 and errorCode: 0" in the running log of the terminal device, taking the unlocking function as face unlocking and the first preset time duration as 10s as an example. The key sentence is used for representing the success of unlocking the face of the terminal equipment. And if the key sentence is identified, determining the operation time (marked as time B) of the face unlocking function. The server determines whether the touch data contains data of the touch event with the touch time within 10s after the B time, namely the server determines whether the touch data contains data of the touch event with the touch time between the B time and the B +10 s. Optionally, the server may identify, in the TOUCH data, an identification field "BTN _ TOUCH DOWN" of a press event having a hit time between time B and time B +10 s. And if the identification field 'BTN _ TOUCH DOWN' of the press-DOWN event between the time B and the time B +10s at the reporting time is not identified, reporting the freeze-screen fault.
In this embodiment, the preset information includes unlocking information, and the unlocking information is used to represent that the terminal device operates an unlocking function. And if the operation log comprises the unlocking information and the touch data does not comprise data within a first preset time after the operation time of the unlocking function, determining that the screen freezing fault occurs in the terminal equipment and reporting the screen freezing fault. The screen freezing fault detection method provided by the embodiment is matched with a scene in which a user cannot execute any touch operation due to screen freezing after unlocking in an actual application scene, and can accurately detect the screen freezing fault after unlocking.
Fig. 12 is a schematic view of an application scenario in which a frozen screen fault occurs when an alarm clock rings in a mobile phone according to an embodiment of the present application. As shown in fig. 12, the user sets 07: 00. 07: 00 the alarm clock of the mobile phone sounds. Under normal conditions, a user needs to perform sliding operation on the display screen to turn off the alarm clock; or, the user needs to click "remind after 10 minutes" on the display screen to set an alarm clock reminder after 10 minutes. However, when the alarm clock rings, if a screen freezing fault occurs in the mobile phone and the picture of the mobile phone is frozen, the user cannot perform related operations such as closing the reminder or setting the reminder for 10 minutes.
For such an application scenario, on the basis of the above embodiment, the method for detecting the freeze-screen fault provided by the embodiment can detect the freeze-screen fault occurring after unlocking. In this embodiment, the preset information includes a reminding information, the preset function includes a reminding function, and the reminding information is used for representing that the terminal device operates the reminding function. The preset duration comprises a second preset duration. In this embodiment, if the running log includes the reminding information and the touch data does not include data within a second preset time after the running time of the reminding function, it is determined that the screen freezing fault occurs in the terminal device.
Alternatively, the second preset time period may be 60s to 65 s.
Optionally, the reminding function may be a ring reminder, a vibration reminder, or a ring + vibration reminder.
Optionally, the reminding function may include at least one of an alarm clock reminding function, a timing reminding function, a schedule reminding function, an incoming call reminding function, and the like.
Optionally, the timing reminding function may include at least one of a timing reminding function in an application "timer", a timing reminding function in an application "stopwatch", and a timing reminding function in other applications.
Optionally, the schedule reminding function may comprise at least one of a schedule reminding function in an application "calendar" and a schedule reminding function in other applications.
Optionally, the incoming call reminding function may include at least one of a voice incoming call reminder, a video incoming call reminder, and the like. The voice incoming call reminder may include at least one of a voice incoming call reminder in an application program "telephone", a voice incoming call reminder in an application program "WeChat", a voice incoming call reminder in an application program "QQ", and a voice incoming call reminder in other communication programs. Similarly, the video incoming call reminder may include at least one of a video incoming call reminder in an application "phone", a video incoming call reminder in an application "WeChat", a video incoming call reminder in an application "QQ", and a video incoming call reminder in other communication programs and the like.
Taking the ALARM function as the ALARM clock reminding function and taking the second preset duration as 60s as an example, in a specific embodiment, the server may identify a key sentence "I HwDeskClock: alarmreceiverinfo: onreceiveaction: ALARM _ ALERT _ ACTION" or "I HwDeskClock: alarmreceiverinfo: onreceiveaction: communication. The key sentence is used for representing that the terminal equipment operates the alarm clock reminding function. And if the key sentence is identified, determining the running time (marked as the time C) of the alarm clock reminding function. The server determines whether the touch data contains data of the touch event with the hit time within 60s after the C time, namely determines whether the touch data contains data of the touch event with the hit time between the C time and the C +60 s. Optionally, the server may identify, in the TOUCH data, an identification field "BTN _ TOUCH DOWN" of a press event at a hit time between time C and time C +60 s. And if the identification field 'BTN _ TOUCH DOWN' statement of the pressing event between the time C and the time C +60s at the reporting time is not identified, reporting the freeze-screen fault.
In this embodiment, the preset information includes a reminding information, and the reminding information is used for representing that the terminal device operates a reminding function. And if the running log comprises the reminding information and the touch data does not comprise data within a second preset time after the running time of the reminding function, determining that the screen freezing fault occurs in the terminal equipment and reporting the screen freezing fault. The method for detecting the screen freezing fault provided by the embodiment is matched with a scene that the screen freezing occurs when the terminal equipment operates the reminding function in an actual application scene, so that a user cannot execute related operations (such as closing the reminding function or answering a call), and the screen freezing fault occurring when the reminding function operates can be accurately detected.
It should be noted that the unlocking information and the reminding information are only some examples of the preset information, and in other embodiments, the preset information may further include other information representing other preset functions, which is not limited in this application. In addition, the preset information may include one or more of various unlocking information, various reminding information, and the like. When the preset information includes a plurality of kinds of information, for each kind of information, the server performs steps S602 to S605 to implement detection of the freeze-screen failure in various scenes.
The above details an example of the freeze screen fault detection method provided by the embodiment of the present application. It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed in hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 13 is a schematic structural diagram of a freeze-screen fault detection apparatus according to an embodiment of the present application. As shown in fig. 13, the freeze-screen failure detection apparatus provided in this embodiment may include:
an obtaining module 1301, configured to obtain an operation log and touch data of an electronic device; the touch data is data generated by the electronic equipment according to touch operation of a user;
the detection module 1302 is configured to determine that a screen freezing fault occurs in the electronic device if the running log includes preset information and the touch data does not include data within a preset time period after the running time of the preset function; the preset information is used for representing that the electronic equipment runs the preset function.
In one embodiment, the preset information comprises unlocking information, the unlocking information is used for representing that the electronic equipment operates an unlocking function, and the preset time comprises a first preset time; the detection module 1302 is specifically configured to:
and if the operation log comprises the unlocking information and the touch data does not comprise data within a first preset time after the operation moment of the unlocking function, determining that the electronic equipment has a screen freezing fault.
In one embodiment, the first preset time period is 10s to 15 s.
In one embodiment, the unlock function is a biological unlock function.
In one embodiment, the unlock function includes at least one of a fingerprint unlock function, a face unlock function, a lip movement unlock function, an iris unlock function, and a voiceprint unlock function.
In one embodiment, the preset information comprises reminding information, the reminding information is used for representing that the electronic equipment operates a reminding function, and the preset time comprises a second preset time; the detecting module 1302 is specifically configured to:
and if the operation log comprises the reminding information and the touch data does not comprise data within a second preset time after the operation time of the reminding function, determining that the screen freezing fault occurs in the electronic equipment.
In one embodiment, the reminder function includes at least one of an alarm clock reminder function, a timed reminder function, a schedule reminder function, and an incoming call reminder function.
In one embodiment, the incoming call alert function includes at least one of a voice incoming call alert function and a video incoming call alert function.
In one embodiment, the second preset duration is 60s to 65 s.
In one embodiment, the detection module 1302 is specifically configured to: determining whether the running log comprises preset information or not; if the running log comprises preset information, determining the running time of a preset function; determining whether the touch data comprises data within a preset time length after the operation time of a preset function; and if the touch data comprises data within a preset time after the operation time of the preset function, determining that the electronic equipment has a screen freezing fault.
In an embodiment, the detecting module 1302 is specifically configured to: determining whether the touch data comprises data of a pressing event within a preset time length after the operation time of a preset function; the data of the press event is data generated by the electronic device according to a press operation of a user.
The freeze screen fault detection device provided by the embodiment is used for executing the freeze screen fault detection method, and the technical principle and the technical effect are similar and are not repeated here.
The embodiment of the application also provides the electronic equipment. The electronic device may be the terminal device or the server in the embodiment of the above application.
In the embodiment of the present application, the electronic device may be divided into function modules according to the method example, for example, the function modules may be divided into function modules corresponding to the functions, such as a detection unit, a processing unit, a display unit, and the like, or two or more functions may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In case of an integrated unit, the electronic device may further comprise a processing module, a storage module and a communication module. The processing module can be used for controlling and managing the action of the electronic equipment. The memory module can be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device according to this embodiment may be a device having a structure shown in fig. 1. The processor, the memory and the interface of the electronic device cooperate with each other, so that the electronic device performs the freeze-screen failure detection method of any of the above embodiments.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the processor is enabled to execute the freeze screen failure detection method of any one of the above embodiments.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the freeze screen fault detection method in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the freeze-screen fault detection method in the above method embodiments.
The electronic device, the computer-readable storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer-readable storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the foregoing embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules, so as to complete all or part of the functions described above.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A freeze screen failure detection method, the method comprising:
acquiring an operation log and touch data of the electronic equipment; the touch data is data generated by the electronic equipment according to touch operation of a user;
if the operation log comprises preset information and the touch data does not comprise data within a preset time length after the operation time of a preset function, determining that the electronic equipment has a screen freezing fault; the preset information is used for representing that the electronic equipment runs the preset function.
2. The method according to claim 1, wherein the preset information comprises unlocking information, the unlocking information is used for representing that the electronic equipment operates an unlocking function, and the preset time duration comprises a first preset time duration;
if the operation log includes preset information and the touch data does not include data within a preset time after the operation time of the preset function, determining that the electronic device has a screen freezing fault, including:
and if the operation log comprises the unlocking information and the touch data does not comprise the data within the first preset time after the operation time of the unlocking function, determining that the electronic equipment has a screen freezing fault.
3. The method of claim 2, wherein the first preset duration is 10s to 15 s.
4. The method of claim 2 or 3, wherein the unlocking function is a biological unlocking function.
5. The method of claim 4, wherein the unlock function comprises at least one of a fingerprint unlock function, a face unlock function, a lip movement unlock function, an iris unlock function, and a voiceprint unlock function.
6. The method according to any one of claims 1 to 5, wherein the preset information comprises reminding information, the reminding information is used for representing that the electronic equipment operates a reminding function, and the preset time duration comprises a second preset time duration;
if the operation log comprises preset information and the touch data does not comprise data within a preset time length after the operation time of the preset function, determining that the electronic equipment has a screen freezing fault, including:
and if the running log comprises the reminding information and the touch data does not comprise the data within the second preset time after the running time of the reminding function, determining that the electronic equipment has the screen freezing fault.
7. The method of claim 6, wherein the alert function comprises at least one of an alarm alert function, a timed alert function, a schedule alert function, and an incoming call alert function.
8. The method of claim 7, wherein the incoming call alert function comprises at least one of a voice incoming call alert function and a video incoming call alert function.
9. The method according to any one of claims 6 to 8, wherein the second preset period of time is 60s to 65 s.
10. The method according to any one of claims 1 to 9, wherein the determining that the electronic device has the screen freeze fault if the operation log includes preset information and the touch data does not include data within a preset time period after the operation time of a preset function includes:
determining whether the running log comprises the preset information or not;
if the running log comprises the preset information, determining the running time of the preset function;
determining whether the touch data comprises data in the preset time length after the running time of the preset function;
and if the touch data comprises data within the preset time after the operation moment of the preset function, determining that the electronic equipment has a screen freezing fault.
11. The method according to claim 10, wherein the determining whether the touch data includes data within the preset time period after the operation time of the preset function includes:
determining whether the touch data comprises data of a press-down event within the preset time length after the running time of the preset function; the data of the press-down event is data generated by the electronic equipment according to the press-down operation of the user.
12. An electronic device, comprising: a processor, a memory, and an interface;
the processor, memory and interface cooperate to cause the electronic device to perform the method of any of claims 1-11.
13. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the method of any one of claims 1 to 11.
14. A computer program product, comprising: computer program code;
the computer program code, when run on an electronic device, causes the electronic device to perform the method of any of claims 1 to 11.
CN202111096094.3A 2021-09-14 2021-09-14 Frozen screen fault detection method, electronic equipment and computer readable storage medium Active CN115016665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111096094.3A CN115016665B (en) 2021-09-14 2021-09-14 Frozen screen fault detection method, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111096094.3A CN115016665B (en) 2021-09-14 2021-09-14 Frozen screen fault detection method, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115016665A true CN115016665A (en) 2022-09-06
CN115016665B CN115016665B (en) 2023-04-21

Family

ID=83064564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111096094.3A Active CN115016665B (en) 2021-09-14 2021-09-14 Frozen screen fault detection method, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115016665B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150185947A1 (en) * 2013-12-26 2015-07-02 Acer Incorporated Method and electronic device for managing event notification
CN105677573A (en) * 2016-02-26 2016-06-15 厦门美图移动科技有限公司 Halt detection method and device and computing device
CN107748632A (en) * 2017-09-28 2018-03-02 努比亚技术有限公司 Freeze screen monitoring method, mobile terminal and computer-readable recording medium
CN107832191A (en) * 2017-10-31 2018-03-23 努比亚技术有限公司 Blank screen detection method, mobile terminal and computer-readable recording medium
CN110618904A (en) * 2018-06-20 2019-12-27 广州优视网络科技有限公司 Stuck detection method and device
JP2020135279A (en) * 2019-02-18 2020-08-31 京セラドキュメントソリューションズ株式会社 Image forming system
CN113268162A (en) * 2021-06-02 2021-08-17 广州绿怡信息科技有限公司 Screen replacement detection method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150185947A1 (en) * 2013-12-26 2015-07-02 Acer Incorporated Method and electronic device for managing event notification
CN105677573A (en) * 2016-02-26 2016-06-15 厦门美图移动科技有限公司 Halt detection method and device and computing device
CN107748632A (en) * 2017-09-28 2018-03-02 努比亚技术有限公司 Freeze screen monitoring method, mobile terminal and computer-readable recording medium
CN107832191A (en) * 2017-10-31 2018-03-23 努比亚技术有限公司 Blank screen detection method, mobile terminal and computer-readable recording medium
CN110618904A (en) * 2018-06-20 2019-12-27 广州优视网络科技有限公司 Stuck detection method and device
JP2020135279A (en) * 2019-02-18 2020-08-31 京セラドキュメントソリューションズ株式会社 Image forming system
CN113268162A (en) * 2021-06-02 2021-08-17 广州绿怡信息科技有限公司 Screen replacement detection method and device

Also Published As

Publication number Publication date
CN115016665B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
JP7280005B2 (en) Wireless charging method and electronic device
KR20210092795A (en) Voice control method and electronic device
CN111316199B (en) Information processing method and electronic equipment
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
US20230110015A1 (en) Application Information Display Method and Related Device
CN115017002B (en) Frequency prediction method and frequency prediction device
WO2022127130A1 (en) Method for adding operation sequence, electronic device, and system
US20230041690A1 (en) Intelligent reminding method and device
CN115113751A (en) Method and device for adjusting numerical range of recognition parameter of touch gesture
CN114371985A (en) Automated testing method, electronic device, and storage medium
CN115016665B (en) Frozen screen fault detection method, electronic equipment and computer readable storage medium
CN114077529A (en) Log uploading method and device, electronic equipment and computer readable storage medium
WO2021052489A1 (en) Method for determining fault computing core in multi-core processor and electronic device
CN114911400A (en) Method for sharing pictures and electronic equipment
CN113520361A (en) Heart rate detection method, terminal equipment and storage medium
CN114583852A (en) Wireless charging method between electronic devices, storage medium and electronic device thereof
CN114006969B (en) Window starting method and electronic equipment
CN116708647B (en) Notification message reply method and electronic equipment
CN112102848B (en) Method, chip and terminal for identifying music
WO2020253694A1 (en) Method, chip and terminal for music recognition
CN117273687B (en) Card punching recommendation method and electronic equipment
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN117097883B (en) Frame loss fault cause determining method, electronic equipment and storage medium
CN111475363B (en) Card death recognition method and electronic equipment
CN117116258A (en) Voice awakening method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant