CN112235466A - Crash information prompting method and device, storage medium and mobile terminal - Google Patents

Crash information prompting method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112235466A
CN112235466A CN202011108906.7A CN202011108906A CN112235466A CN 112235466 A CN112235466 A CN 112235466A CN 202011108906 A CN202011108906 A CN 202011108906A CN 112235466 A CN112235466 A CN 112235466A
Authority
CN
China
Prior art keywords
module
mobile terminal
time
counting
reading
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.)
Pending
Application number
CN202011108906.7A
Other languages
Chinese (zh)
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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202011108906.7A priority Critical patent/CN112235466A/en
Publication of CN112235466A publication Critical patent/CN112235466A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/321Display for diagnostics, e.g. diagnostic result display, self-test user interface

Abstract

The invention provides a halt information prompting method which is applied to a mobile terminal, wherein the mobile terminal comprises a first counting module, a time saving module and a halt recording module, and the halt information prompting method comprises the following steps: detecting that the mobile terminal is started; reading a first count value of a first counting module; judging whether the first count value is a first preset value or not; if so, reading the last recorded time in the time storage module as the dead time, writing the dead time into the dead time recording module, and displaying the dead time to the user, so that the mobile terminal can judge whether the starting at the current moment is normal starting or starting caused by forced reset of the user due to dead time in the last using process of the mobile terminal when the mobile terminal is started every time, and prompt the user.

Description

Crash information prompting method and device, storage medium and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a crash information prompting method, a crash information prompting device, a storage medium and a mobile terminal.
Background
At present, the technology of the mobile terminal is rapidly developed, and in order to meet more demands and management of users, it is anticipated that a system of the mobile terminal will be more complex. In such a complicated mobile terminal system, before the mobile terminal is shipped, the manufacturer has limited tests on the mobile terminal, and after the mobile terminal is shipped, a large number of users inevitably crash when using the mobile terminal.
Most mobile terminals in the market at present adopt a structure that a battery cannot be plugged and unplugged, and when a crash occurs, a user can forcibly reset the mobile terminal through a key combination set by a certain manufacturer, for example, the mobile terminal is reset by pressing a power-on key for ten seconds.
However, in the prior art, after the mobile terminal crashes, if the user forcibly resets to start the mobile terminal, the mobile terminal cannot determine whether the start at the current time is normal or the start is caused by the forcible reset of the user due to the crash of the mobile terminal in the last use process, so that the user cannot be prompted.
Disclosure of Invention
The invention provides a method and a device for prompting crash information, a storage medium and a mobile terminal, which effectively solve the problem that when the mobile terminal is started each time, whether the current startup is normal or the startup caused by forced reset of a user due to crash in the last use process of the mobile terminal cannot be judged, so that the user cannot be prompted.
In order to solve the above problems, the present invention provides a crash information prompting method, which is applied to a mobile terminal, wherein the mobile terminal includes a first counting module, a time saving module and a crash recording module, and the crash information prompting method includes:
a detection step, namely detecting that the mobile terminal is started;
reading, namely reading a first count value of the first counting module;
judging whether the first count value is a first preset value or not;
reading and writing, if yes, reading the time recorded last time in the time storage module as the dead time, and writing the dead time into the dead time recording module;
and a display step of displaying the dead time to a user.
Further preferably, the mobile terminal further includes a second counting module, and in the reading step, the mobile terminal further includes:
a reading sub-step of reading a second count value of the second count module;
and a writing sub-step of adding one to the second count value to serve as the updated second count value and writing the updated second count value into the second counting module.
Further preferably, after the displaying step, the method further includes:
a shutdown detection step, namely detecting that a shutdown module of the mobile terminal is triggered;
a shutdown reading step of reading a first count value of the first counting module and a second count value of the second counting module;
a first updating step, namely taking a second preset value as the updated first counting value, and writing the updated first counting value into the first counting module;
and a second updating step of subtracting one from the second count value to obtain an updated second count value, and writing the updated second count value into the second counting module.
Further preferably, after the reading step, the method further includes:
an obtaining step of obtaining a second count value of the second counting module;
calculating, namely subtracting one from the second counting value to obtain the number of times of dead halt;
and a dead halt number display step of displaying the dead halt number to a user.
Further preferably, after the detecting step, the method further comprises:
a time obtaining step of obtaining the system time of the mobile terminal;
writing and timing, namely writing the system time into the time storage module and starting timing;
and re-executing the step, and returning to execute the time acquisition step when the timing duration reaches the preset duration.
Further preferably, after the judging step, the method further includes:
and a rewriting step, if not, taking the first preset value as the updated first counting value, and writing the updated first counting value into the first counting module.
On the other hand, the invention also provides a crash information prompting device, which is applied to a mobile terminal, wherein the mobile terminal comprises a first counting module, a time saving module and a crash recording module, and the crash information prompting device comprises:
the detection module is used for detecting the startup of the mobile terminal;
the reading module is used for reading a first counting value of the first counting module;
the judging module is used for judging whether the first counting value is a first preset value or not;
the reading and writing module is used for reading the time recorded last time in the time storage module as the dead time if the time is positive and writing the dead time into the dead time recording module;
and the display module is used for displaying the dead time to a user.
Further preferably, the mobile terminal further includes a second counting module, and the reading module further includes:
the reading unit is used for reading a second counting value of the second counting module;
and the writing unit is used for adding one to the second counting value to serve as the updated second counting value and writing the updated second counting value into the second counting module.
Further preferably, the crash information prompting device further includes a shutdown updating module, configured to:
after the dead time is displayed to a user, detecting that a shutdown module of the mobile terminal is triggered;
reading a first count value of the first counting module and a second count value of the second counting module;
taking a second preset value as the updated first count value, and writing the updated first count value into the first counting module;
and subtracting one from the second count value to serve as the updated second count value, and writing the updated second count value into the second counting module.
Further preferably, the crash information prompting device further includes a crash number calculating module, configured to:
after reading the first count value of the first counting module, acquiring a second count value of the second counting module;
subtracting one from the second counting value to obtain the number of times of dead halt;
and displaying the dead halt times to a user.
Further preferably, the crash information prompting device further includes a system time writing module, configured to:
after the mobile terminal is detected to be started, acquiring the system time of the mobile terminal;
writing the system time into the time saving module and starting timing;
and when the timing duration reaches a preset duration, returning to the step of acquiring the system time of the mobile terminal.
Further preferably, the crash information prompting device further includes a rewriting module, configured to:
after judging whether the first counting value is a first preset value or not, if not, taking the first preset value as the updated first counting value, and writing the updated first counting value into the first counting module.
In another aspect, the present invention further provides a computer-readable storage medium, where a plurality of instructions are stored, where the instructions are adapted to be loaded by a processor to execute any of the foregoing crash information prompting methods.
On the other hand, the invention also provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the crash information prompting method.
The invention has the beneficial effects that: the invention provides a halt information prompting method which is applied to a mobile terminal, wherein the mobile terminal comprises a first counting module, a time saving module and a halt recording module, and the halt information prompting method comprises the following steps: detecting that the mobile terminal is started; reading a first count value of a first counting module; judging whether the first count value is a first preset value or not; if so, reading the last recorded time in the time storage module as the dead time, writing the dead time into the dead time recording module, and displaying the dead time to the user, so that the mobile terminal can judge whether the starting at the current moment is normal starting or starting caused by forced reset of the user due to dead time in the last using process of the mobile terminal when the mobile terminal is started every time, and prompt the user.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments according to the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a detailed structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of a crash information prompting method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a crash information prompting device according to an embodiment of the present invention.
Fig. 5 is a detailed structural diagram of the crash information prompting device according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention is used for solving the problem that the mobile terminal in the prior art can not judge whether the starting at the current moment is normal starting or cannot prompt a user due to the forced resetting of the user caused by the crash in the last use process of the mobile terminal.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads an instruction corresponding to a process of one or more application programs into the memory 102 according to the following steps, and the processor 101 runs the application program stored in the memory 102, so as to implement various functions, and the mobile terminal includes a first counting module, a time saving module, and a dead halt recording module, such as a dead halt information prompting method:
detecting that the mobile terminal is started;
reading a first count value of a first counting module;
judging whether the first count value is a first preset value or not;
if so, reading the last recorded time in the time storage module as the dead time, and writing the dead time into the dead time recording module;
the time to death is displayed to the user.
The mobile terminal 100 may implement any step in the immortal information prompting method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11b, IEEE802.11g, and/or IEEE802.11 n standards), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access), wimax, other suitable short message protocols, and may even include those protocols that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as corresponding program instructions in the above audio power amplifier control method, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, that is, obtains the frequency of the information transmission signal transmitted by the mobile terminal 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 100.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera, etc.), a bluetooth module, a flashlight, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
detecting that the mobile terminal is started;
reading a first count value of a first counting module;
judging whether the first count value is a first preset value or not;
if so, reading the last recorded time in the time storage module as the dead time, and writing the dead time into the dead time recording module;
the time to death is displayed to the user.
In order to better use the mobile terminal 100 provided in the foregoing embodiment, so that the mobile terminal 100 can determine whether the power-on at the current time is a normal power-on or a power-on caused by a user forced reset due to a crash in the last use process of the mobile terminal 100 every time the mobile terminal 100 is powered on, and prompt the user, the present invention provides a crash information prompting method, which is applied to the mobile terminal 100, wherein the mobile terminal 100 includes a first counting module, a time saving module, and a crash recording module, a flowchart of the crash information prompting method is shown in fig. 3, and the specific steps may be as follows:
and a detection step S1O1, detecting that the mobile terminal is started.
It should be noted that, after the mobile terminal 100 is powered on, the system time is stored once at regular intervals, specifically, the system time is stored in a time storage module of the mobile terminal 100, and when the subsequent mobile terminal 100 is in a crash state, the system time at that time is read out and stored in a crash recording module.
For example, after the detecting step S1O1, the method further includes:
a time obtaining step, namely obtaining the system time of the mobile terminal;
writing and timing, namely writing the system time into a time storage module and starting timing;
and re-executing the step, and returning to the execution time obtaining step when the timing duration reaches the preset duration.
It is easy to understand that the preset time period may be a time set by the user, such as 3 minutes, 5 minutes, etc., or may be set by the mobile terminal 100 according to the frequency of past crashes.
Reading step S1O2. reading the first count value of the first count module.
It is easy to understand that the first count value stored in the first count module is used to enable the mobile terminal 100 to determine whether the power-on at the current time is the normal power-on or the power-on caused by the user forced reset due to the crash in the last use process of the mobile terminal 100, specifically, the first count value has two states, for example, a 0 value and a 1 value, and further, it can be set that when the first count value is 0, it indicates that the power-on at the current time of the mobile terminal 100 is the normal power-on, and when the first count value is 1, it indicates that the power-on at the current time of the mobile terminal 100 is the power-on caused by the user forced reset due to the crash.
It should be noted that the mobile terminal 100 further has a second counting module, where the second counting module is used to mark the total number of times of the crash of the mobile terminal 100, and after the mobile terminal 100 is powered on, a second counting value in the second counting module is updated.
For example, in the reading step S1O2, the method further includes:
a reading sub-step of reading a second count value of the second counting module;
and a writing sub-step, namely adding one to the second counting value to serve as an updated second counting value, and writing the updated second counting value into the second counting module.
It is easy to understand that, in this embodiment, when the mobile terminal 100 is powered on, the second count value of the second counting module is incremented, if the mobile terminal 100 is normally powered off, the second count value of the second counting module is decremented by one before the mobile terminal is powered off, and if the mobile terminal 100 is not normally powered off, the second count module is not decremented, so that the second counting module can realize the function of marking the total number of times of the mobile terminal 100 being dead.
It should be noted that, after the mobile terminal 100 is powered on, the total number of times of the mobile terminal 100 being halted can be obtained by reading the second count value of the second counting module and performing corresponding calculation.
For example, after the reading step S1O2, the method further includes:
an obtaining step of obtaining a second count value of a second counting module;
a calculating step, namely subtracting one from the second counting value to obtain the number of times of dead halt;
and a dead halt number display step of displaying the dead halt number to the user.
And a judging step S1O3, judging whether the first count value is a first preset value.
It is easily understood that, in the present embodiment, the first preset value is 1, which indicates that the power-on of the mobile terminal 100 at the current time is the power-on caused by the forced reset of the user due to the dead halt.
It should be noted that, if the power-on of the mobile terminal 100 at the current time is normal, the first count value will not be the first preset value, and at this time, the first count value needs to be updated during power-on.
For example, after the step S1O3, the method further includes:
and a rewriting step, if not, taking the first preset value as an updated first counting value, and writing the updated first counting value into the first counting module.
It is easy to understand that, each time the mobile terminal 100 is powered on, the first count value in the first counting module is written as a first preset value (i.e. 1), and when the mobile terminal is powered off normally, the first count value is written as a second preset value (i.e. 0).
And if so, reading the time recorded last in the time storage module as the dead time, and writing the dead time into the dead time recording module.
It is easy to understand that, when the first count value is the first preset value (in this embodiment, 1), it indicates that the power-on of the mobile terminal at the current time is the power-on caused by the forced reset of the user due to the crash, and the mobile terminal 100 needs to store the time of the crash and display the time to the user for prompting.
Display step s1o5. display the time of death to the user.
It is easily understood that the number of times of the mobile terminal 100 crashes may be simultaneously displayed while displaying the time of the crash to the user.
It should be noted that, before the mobile terminal 100 is normally powered off, the power-off module of the mobile terminal is triggered, when the power-off module is triggered, a power-off instruction may be generated, the mobile terminal updates the first count value of the first counting module and the second count value of the second counting module according to the power-off instruction, and after the updating is completed, the mobile terminal 100 is powered off.
For example, after the step S1O5 is displayed, the method further includes:
a shutdown detection step, namely detecting that a shutdown module of the mobile terminal is triggered;
a shutdown reading step, namely reading a first count value of the first counting module and a second count value of the second counting module;
a first updating step, namely taking the second preset value as an updated first counting value, and writing the updated first counting value into the first counting module;
and a second updating step of subtracting one from the second count value to serve as an updated second count value and writing the updated second count value into the second counting module.
It is easy to understand that, at this time, the mobile terminal 100 is normally powered off, so the first count value of the first counting module needs to be updated to a second preset value (in this embodiment, 0), so that when the mobile terminal 100 is powered on next time, the power on of the mobile terminal 100 is determined to be normal power on according to the second preset value, and because the mobile terminal 100 is normally powered off, the second count value of the second counting module needs to be decreased by one to complete the update before the power off.
Different from the prior art, the invention provides a crash information prompting method which is applied to a mobile terminal, wherein the mobile terminal comprises a first counting module, a time saving module and a crash recording module, and the crash information prompting method comprises the following steps: detecting that the mobile terminal is started; reading a first count value of a first counting module; judging whether the first count value is a first preset value or not; if so, reading the last recorded time in the time storage module as the dead time, writing the dead time into the dead time recording module, and displaying the dead time to the user, so that the mobile terminal can judge whether the starting at the current moment is normal starting or starting caused by forced reset of the user due to dead time in the last using process of the mobile terminal when the mobile terminal is started every time, and prompt the user.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a crash information prompting apparatus according to an embodiment of the present invention, which is applied to a mobile terminal 100, where the mobile terminal 100 includes a first counting module, a time saving module, and a crash recording module, and the crash information prompting apparatus may include:
(1) detection module 10
The detecting module 10 is configured to perform the detecting step S101, that is, detect that the mobile terminal is powered on.
It should be noted that, after the mobile terminal 100 is powered on, the system time is stored once at regular intervals, specifically, the system time is stored in a time storage module of the mobile terminal 100, and when the subsequent mobile terminal 100 is in a crash state, the system time at that time is read out and stored in a crash recording module.
For example, the crash information prompting device may further include a system time writing module, configured to:
the method comprises the steps of obtaining the system time of the mobile terminal after the mobile terminal is detected to be started;
writing the system time into a time storage module and starting timing;
and when the timing duration reaches the preset duration, returning to execute the step of acquiring the system time of the mobile terminal.
It is easy to understand that the preset time period may be a time set by the user, such as 3 minutes, 5 minutes, etc., or may be set by the mobile terminal 100 according to the frequency of past crashes.
(2) Reading module 20
The reading module 20 is configured to perform the reading step S102, that is, read the first count value of the first counting module.
It is easy to understand that the first count value stored in the first count module is used to enable the mobile terminal 100 to determine whether the power-on at the current time is the normal power-on or the power-on caused by the user forced reset due to the crash in the last use process of the mobile terminal 100, specifically, the first count value has two states, for example, a 0 value and a 1 value, and further, it can be set that when the first count value is 0, it indicates that the power-on at the current time of the mobile terminal 100 is the normal power-on, and when the first count value is 1, it indicates that the power-on at the current time of the mobile terminal 100 is the power-on caused by the user forced reset due to the crash.
It should be noted that the mobile terminal 100 further has a second counting module, where the second counting module is used to mark the total number of times of the crash of the mobile terminal 100, and after the mobile terminal 100 is powered on, a second counting value in the second counting module is updated.
Further, referring to fig. 5, fig. 5 is another schematic structural diagram of the crash information prompting device according to the embodiment of the present invention, where the reading module 20 specifically includes:
a reading unit 21, configured to read a second count value of the second counting module;
and a writing unit 22, configured to add one to the second count value to serve as an updated second count value, and write the updated second count value into the second counting module.
It is easy to understand that, in this embodiment, when the mobile terminal 100 is powered on, the second count value of the second counting module is incremented, if the mobile terminal 100 is normally powered off, the second count value of the second counting module is decremented by one before the mobile terminal is powered off, and if the mobile terminal 100 is not normally powered off, the second count module is not decremented, so that the second counting module can realize the function of marking the total number of times of the mobile terminal 100 being dead.
It should be noted that, after the mobile terminal 100 is powered on, the total number of times of the mobile terminal 100 being halted can be obtained by reading the second count value of the second counting module and performing corresponding calculation.
For example, the crash information prompting device may further include a crash number calculating module, configured to:
after reading the first count value of the first counting module, acquiring a second count value of the second counting module;
subtracting one from the second counting value to obtain the number of times of dead halt;
the number of crashes is displayed to the user.
(3) Judging module 30
The determining module 30 is configured to execute the determining step S103, that is, determine whether the first count value is the first preset value.
It is easily understood that, in the present embodiment, the first preset value is 1, which indicates that the power-on of the mobile terminal 100 at the current time is the power-on caused by the forced reset of the user due to the dead halt.
It should be noted that, if the power-on of the mobile terminal 100 at the current time is normal, the first count value will not be the first preset value, and at this time, the first count value needs to be updated during power-on.
For example, the crash information prompting device may further include a rewriting module configured to:
after judging whether the first counting value is the first preset value or not, if not, taking the first preset value as an updated first counting value, and writing the updated first counting value into the first counting module.
It is easy to understand that, each time the mobile terminal 100 is powered on, the first count value in the first counting module is written as a first preset value (i.e. 1), and when the mobile terminal is powered off normally, the first count value is written as a second preset value (i.e. 0).
(4) Read and write module 40
The reading and writing module 40 is configured to execute the reading and writing step S104, that is, if yes, the time recorded last in the reading time saving module is taken as the dead time, and the dead time is written into the dead time recording module.
It is easy to understand that, when the first count value is the first preset value (in this embodiment, 1), it indicates that the power-on of the mobile terminal at the current time is the power-on caused by the forced reset of the user due to the crash, and the mobile terminal 100 needs to store the time of the crash and display the time to the user for prompting.
(5) Display module 50
The display module 50 is configured to perform the displaying step S105, i.e. displaying the dead time to the user.
It is easily understood that the number of times of the mobile terminal 100 crashes may be simultaneously displayed while displaying the time of the crash to the user.
It should be noted that, before the mobile terminal 100 is normally powered off, the power-off module of the mobile terminal is triggered, when the power-off module is triggered, a power-off instruction may be generated, the mobile terminal updates the first count value of the first counting module and the second count value of the second counting module according to the power-off instruction, and after the updating is completed, the mobile terminal 100 is powered off.
For example, the crash information prompting device may further include a shutdown updating module, configured to:
after displaying the dead time to a user, detecting that a shutdown module of the mobile terminal is triggered;
reading a first count value of the first counting module and a second count value of the second counting module;
taking the second preset value as an updated first count value, and writing the updated first count value into the first counting module;
and subtracting one from the second count value to serve as an updated second count value, and writing the updated second count value into the second counting module.
It is easy to understand that, at this time, the mobile terminal 100 is normally powered off, so the first count value of the first counting module needs to be updated to a second preset value (in this embodiment, 0) to determine that the power-on of the mobile terminal 100 is normal power-on according to the second preset value when the mobile terminal 100 is powered on next time, and because the mobile terminal 100 is normally powered off, the second count value of the second counting module needs to be decreased by one to complete the update before the power-off
Different from the prior art, the invention provides a crash information prompting device, which is applied to a mobile terminal, wherein the mobile terminal comprises a first counting module, a time saving module and a crash recording module, and the crash information prompting device comprises: a detection module 10 for detecting the start-up of the mobile terminal; a reading module 20 for reading the first count value of the first counting module; a judging module 30 for judging whether the first count value is a first preset value; if yes, the last recorded time in the reading time storage module is used as the dead time, the dead time is written into the reading and writing module 40 of the dead time recording module, and then the display module 50 of the dead time is displayed to the user, so that the mobile terminal can judge whether the starting at the current moment is normal starting or starting caused by forced resetting of the user due to the dead time in the last using process of the mobile terminal every time the mobile terminal is started, and prompt is given to the user.
In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by using equivalents or equivalent substitutions fall within the protection scope of the claims of the present invention.
In summary, although the preferred embodiments of the present invention have been described above, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (10)

1. A crash information prompting method is applied to a mobile terminal, the mobile terminal comprises a first counting module, a time saving module and a crash recording module, and the crash information prompting method is characterized by comprising the following steps:
a detection step, namely detecting that the mobile terminal is started;
reading, namely reading a first count value of the first counting module;
judging whether the first count value is a first preset value or not;
reading and writing, if yes, reading the time recorded last time in the time storage module as the dead time, and writing the dead time into the dead time recording module;
and a display step of displaying the dead time to a user.
2. The crash information prompting method according to claim 1, wherein the mobile terminal further comprises a second counting module, and in the reading step, the method further comprises:
a reading sub-step of reading a second count value of the second count module;
and a writing sub-step of adding one to the second count value to serve as the updated second count value and writing the updated second count value into the second counting module.
3. The crash information prompting method according to claim 2, further comprising, after the displaying step:
a shutdown detection step, namely detecting that a shutdown module of the mobile terminal is triggered;
a shutdown reading step of reading a first count value of the first counting module and a second count value of the second counting module;
a first updating step, namely taking a second preset value as the updated first counting value, and writing the updated first counting value into the first counting module;
and a second updating step of subtracting one from the second count value to obtain an updated second count value, and writing the updated second count value into the second counting module.
4. The crash information prompting method according to claim 2, further comprising, after the reading step:
an obtaining step of obtaining a second count value of the second counting module;
calculating, namely subtracting one from the second counting value to obtain the number of times of dead halt;
and a dead halt number display step of displaying the dead halt number to a user.
5. The crash information prompting method according to claim 1, further comprising, after the detecting step:
a time obtaining step of obtaining the system time of the mobile terminal;
writing and timing, namely writing the system time into the time storage module and starting timing;
and re-executing the step, and returning to execute the time acquisition step when the timing duration reaches the preset duration.
6. The crash information prompting method according to claim 1, further comprising, after the judging step:
and a rewriting step, if not, taking the first preset value as the updated first counting value, and writing the updated first counting value into the first counting module.
7. The utility model provides a crash information prompting device, is applied to mobile terminal, mobile terminal includes first count module, time save module and crash record module, its characterized in that, crash information prompting device includes:
the detection module is used for detecting the startup of the mobile terminal;
the reading module is used for reading a first counting value of the first counting module;
the judging module is used for judging whether the first counting value is a first preset value or not;
the reading and writing module is used for reading the time recorded last time in the time storage module as the dead time if the time is positive and writing the dead time into the dead time recording module;
and the display module is used for displaying the dead time to a user.
8. The crash information prompting device according to claim 7, wherein the mobile terminal further comprises a second counting module, and the reading module further comprises:
the reading unit is used for reading a second counting value of the second counting module;
and the writing unit is used for adding one to the second counting value to serve as the updated second counting value and writing the updated second counting value into the second counting module.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the method of any of claims 1 to 6.
10. A mobile terminal, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the crash information prompting method according to any one of claims 1 to 6.
CN202011108906.7A 2020-10-16 2020-10-16 Crash information prompting method and device, storage medium and mobile terminal Pending CN112235466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011108906.7A CN112235466A (en) 2020-10-16 2020-10-16 Crash information prompting method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011108906.7A CN112235466A (en) 2020-10-16 2020-10-16 Crash information prompting method and device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN112235466A true CN112235466A (en) 2021-01-15

Family

ID=74118357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011108906.7A Pending CN112235466A (en) 2020-10-16 2020-10-16 Crash information prompting method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112235466A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2898939Y (en) * 2006-02-07 2007-05-09 上海环达计算机科技有限公司 Automatic counter for testing power-supply switch state circulation
CN102355531A (en) * 2011-09-28 2012-02-15 捷开通讯科技(上海)有限公司 Device and method for displaying starting time of mobile terminal
CN105893223A (en) * 2016-04-29 2016-08-24 乐视控股(北京)有限公司 Abnormity display method and abnormity display device
WO2017011000A1 (en) * 2015-07-15 2017-01-19 Hewlett Packard Enterprise Development Lp Determining severity of application crashes
CN106453911A (en) * 2016-10-20 2017-02-22 广东小天才科技有限公司 Mobile terminal shutdown control method and apparatus, and mobile terminal
US20170371734A1 (en) * 2016-06-23 2017-12-28 Vmware, Inc. Monitoring of an automated end-to-end crash analysis system
CN108152706A (en) * 2017-12-18 2018-06-12 Tcl移动通信科技(宁波)有限公司 Mobile terminal and power management chip restart detection process method and storage medium
CN110083489A (en) * 2019-04-22 2019-08-02 惠州Tcl移动通信有限公司 Mobile terminal collapses processing method, mobile terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2898939Y (en) * 2006-02-07 2007-05-09 上海环达计算机科技有限公司 Automatic counter for testing power-supply switch state circulation
CN102355531A (en) * 2011-09-28 2012-02-15 捷开通讯科技(上海)有限公司 Device and method for displaying starting time of mobile terminal
WO2017011000A1 (en) * 2015-07-15 2017-01-19 Hewlett Packard Enterprise Development Lp Determining severity of application crashes
CN105893223A (en) * 2016-04-29 2016-08-24 乐视控股(北京)有限公司 Abnormity display method and abnormity display device
US20170371734A1 (en) * 2016-06-23 2017-12-28 Vmware, Inc. Monitoring of an automated end-to-end crash analysis system
CN106453911A (en) * 2016-10-20 2017-02-22 广东小天才科技有限公司 Mobile terminal shutdown control method and apparatus, and mobile terminal
CN108152706A (en) * 2017-12-18 2018-06-12 Tcl移动通信科技(宁波)有限公司 Mobile terminal and power management chip restart detection process method and storage medium
CN110083489A (en) * 2019-04-22 2019-08-02 惠州Tcl移动通信有限公司 Mobile terminal collapses processing method, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN106786962B (en) Charging control method and device and terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN111026457A (en) Hardware configuration method and device, storage medium and terminal equipment
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN112235466A (en) Crash information prompting method and device, storage medium and mobile terminal
CN108681467B (en) System awakening method and terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN112486350A (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111399944A (en) Application function starting method and device, storage medium and mobile terminal
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111654849A (en) Quick starting method and system for near field communication, storage medium and terminal equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN106033358B (en) Batch installation method and device of application programs
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN112202952B (en) Mobile terminal testing method and device, storage medium and mobile terminal
CN110806914B (en) Application processing method and device and electronic equipment
CN113079249B (en) Prompting method, prompting device, storage medium and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210115