CN108334433A - Restart localization method, mobile terminal and readable storage medium storing program for executing based on power managed - Google Patents

Restart localization method, mobile terminal and readable storage medium storing program for executing based on power managed Download PDF

Info

Publication number
CN108334433A
CN108334433A CN201810099508.XA CN201810099508A CN108334433A CN 108334433 A CN108334433 A CN 108334433A CN 201810099508 A CN201810099508 A CN 201810099508A CN 108334433 A CN108334433 A CN 108334433A
Authority
CN
China
Prior art keywords
mobile terminal
control
temperature management
daily record
key message
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
CN201810099508.XA
Other languages
Chinese (zh)
Other versions
CN108334433B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810099508.XA priority Critical patent/CN108334433B/en
Publication of CN108334433A publication Critical patent/CN108334433A/en
Application granted granted Critical
Publication of CN108334433B publication Critical patent/CN108334433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of to restart localization method, mobile terminal and readable storage medium storing program for executing based on power managed, and this approach includes the following steps:After monitoring that exception occurs in the temperature management and control of Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block, the corresponding abnormal mark of temperature management and control is read;Abnormal identify is matched with the daily record mark to prestore;If abnormal mark identifies successful match with daily record, associated log information is identified according to daily record identifier lookup and daily record, and obtain the progress information of process corresponding with temperature management and control;Restart daily record according to progress information and log information generation, restarting daily record positioning mobile terminal with basis restarts reason.The present invention improves the efficiency for the reason of reboot operation occurs for positioning mobile terminal, and reduces human cost.

Description

Restart localization method, mobile terminal and readable storage medium storing program for executing based on power managed
Technical field
The present invention relates to field of communication technology more particularly to it is a kind of based on power managed restart localization method, it is mobile eventually End and readable storage medium storing program for executing.
Background technology
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become what people worked and lived Indispensable tool.User is during using mobile terminal, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole Automatically the reason of restarting may be already present before city on mobile terminals at end, and only developer does not have found.At this point, User needs the mobile terminal returning factory, and a large amount of test job is carried out by tester, causes mobile terminal to occur with determination The reason of restarting.
Currently, in testing field, the method for restart pressure test to mobile terminal operating system is still using people The method of work test, restarts mobile phone, then carries out pressure test manually.However, this test method excessively labor intensive and when Between, especially to the lower mobile terminal of loophole BUG recurrence rates, for example, mobile terminal, which restarts 1000 times, just may only occur one The input of secondary or BUG several times, time and manpower is excessive and output very little, it is obvious that this analysis mobile terminal restarts behaviour The way for making reason is extremely inefficient.Therefore, how fast positioning of mobile terminal occur reboot operation the reason of be at present urgently Problem to be solved.
Invention content
It is a primary object of the present invention to propose a kind of to restart localization method, mobile terminal and readable based on power managed Storage medium, it is intended to the technical issues of solving the reason of how reboot operation occurs for fast positioning of mobile terminal.
To achieve the above object, what the present invention provides a kind of based on power managed restarts localization method, described to be based on work( Consuming the localization method of restarting managed includes:
When the temperature for monitoring Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block After exception occurs in management and control, the corresponding abnormal mark of the temperature management and control is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and obtains the progress information of process corresponding with the temperature management and control;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal restarts reason.
Optionally, described to monitor that Kernel layers of power managed mould of mobile terminal default key message point in the block corresponds to After exception occurs in the temperature management and control of position, reading the step of corresponding exception of the temperature management and control identifies includes:
When the Monitoring instruction for detecting monitoring Kernel layers of power managed mould of mobile terminal default key message point in the block Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the temperature management and control of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the temperature management and control, the corresponding abnormal mark of the temperature management and control is read.
Optionally, the step of reading the state value of the key message point according to the Monitoring instruction include:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determining that the temperature management and control does not occur exception according to the first state value of preset quantity, according to second Reading frequency reads the second state value of the key message point preset quantity;
If all determining that the temperature management and control does not occur exception according to second state value of preset quantity, according to third Reading frequency reads the third state value of the key message point, wherein second reading frequency is more than described first and reads Frequency is less than the third reading frequency.
Optionally, the of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of one state value, further include:
If it is abnormal to determine that the temperature management and control occurs according to a first state value, detecting the mobile terminal is No generation reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency State value.
Optionally, daily record is restarted according to the progress information and log information generation, to restart daily record according to Before positioning the step of mobile terminal restarts reason, further include:
Judge whether monitor the key message again in the first preset time after getting the progress information The temperature management and control of point corresponding position occurs abnormal;
If being monitored again in first preset time, the temperature management and control of the key message point corresponding position occurs It is abnormal, then store the progress information.
Optionally, daily record is restarted according to the progress information and log information generation, to restart daily record according to After positioning the step of mobile terminal restarts reason, further include:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Optionally, described to monitor that Kernel layers of power managed mould of mobile terminal default key message point in the block corresponds to After exception occurs in the temperature management and control of position, before reading the step of corresponding exception of the temperature management and control identifies, further include:
Determine it is Kernel layers described in power managed module call flow recognition node, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Optionally, described to monitor that Kernel layers of power managed mould of mobile terminal default key message point in the block corresponds to After exception occurs in the temperature management and control of position, before reading the step of corresponding exception of the temperature management and control identifies, further include:
Determine whether the temperature management and control for monitoring the key message point corresponding position abnormal thread occurs, and by the line Journey is deployed in described Kernel layers of kthreadd processes and kernel processes.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory, It processor and is stored on the memory and what can be run on the processor restarts finder based on power managed, The restarting based on power managed is realized as described above based on power managed when finder is executed by the processor The step of restarting localization method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium The finder of restarting based on power managed is stored on storage medium, the finder of restarting based on power managed is located Manage realized when device executes it is as described above based on power managed the step of restarting localization method.
The present invention monitors that Kernel layers of power managed mould of mobile terminal default key message point in the block corresponds to by working as After exception occurs in the temperature management and control of position, the corresponding abnormal mark of the temperature management and control is read;By the exception mark and prestore Daily record mark matched;If the abnormal mark identifies successful match with the daily record, looked into according to daily record mark It looks for and identifies associated log information with the daily record, and obtain the progress information of process corresponding with the temperature management and control;According to institute It states progress information and daily record is restarted in log information generation, restart original to restart the daily record positioning mobile terminal according to Cause.It realizes before reboot operation does not occur for mobile terminal, reboot operation can occur for acquisition mobile terminal corresponding heavy in advance Daily record is opened, in order to which after reboot operation occurs for mobile terminal, corresponding staff can quickly determine according to daily record is restarted The reason of causing mobile terminal to be restarted, the efficiency for the reason of positioning mobile terminal restarts failure is improved, and reduced Human cost.
Description of the drawings
A kind of Fig. 1 hardware architecture diagrams of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is that the present invention is based on the flow diagrams for restarting localization method first embodiment of power managed;
Fig. 4 is that the present invention is based on a kind of flows for restarting step S101 in localization method first embodiment of power managed to show It is intended to;
Fig. 5 is that the present invention is based on the flow diagrams for restarting localization method 3rd embodiment of power managed;
Fig. 6 is that the present invention is based on the flow diagrams for restarting localization method fourth embodiment of power managed.
The realization, the function and the advantages of the object of the present invention will be explained with reference to attached drawing in conjunction with the embodiments.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit 103, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with And the equal components of power supply 111.It will be understood by those skilled in the art that 100 structure of mobile terminal shown in Fig. 1 is not constituted to moving The restriction of dynamic terminal 100, mobile terminal 100 may include components more more or fewer than diagram, or combine certain components, or The different component arrangement of person.
The all parts of mobile terminal 100 are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal 100 can help user to receive by Wi-Fi module 102 Send e-mails, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although figure 1 shows Wi-Fi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal 100, it completely can be with It is omitted in the range for the essence for not changing invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or Wi-Fi module 102 are received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide executed with mobile terminal 100 the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal 100, utilizes various interfaces and the entire mobile terminal of connection Various pieces by running or execute the software program and/or module that are stored in memory 109, and are called and are stored in Data in reservoir 109 execute the various functions and processing data of mobile terminal 100, to carry out entirety to mobile terminal 100 Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in mobile terminal shown in Fig. 1, processor 110 be used to call stored in memory 109 based on power consumption Finder is restarted in management, and executes following operation:
When the temperature for monitoring 100Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block After exception occurs in degree management and control, the corresponding abnormal mark of the temperature management and control is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and obtains the progress information of process corresponding with the temperature management and control;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal 100 restarts reason.
Further, described to monitor 100Kernel layers of power managed mould of mobile terminal default key message in the block After exception occurs in the temperature management and control of point corresponding position, reading the step of corresponding exception of the temperature management and control identifies includes:
When detect monitoring 100Kernel layers of power managed mould of mobile terminal default key message point in the block monitoring refer to After order, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the temperature management and control of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the temperature management and control, the corresponding abnormal mark of the temperature management and control is read.
Further, the step of reading the state value of the key message point according to the Monitoring instruction include:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determining that the temperature management and control does not occur exception according to the first state value of preset quantity, according to second Reading frequency reads the second state value of the key message point preset quantity;
If all determining that the temperature management and control does not occur exception according to second state value of preset quantity, according to third Reading frequency reads the third state value of the key message point, wherein second reading frequency is more than described first and reads Frequency is less than the third reading frequency.
Further, the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of first state value, processor 110 is additionally operable to that the restarting based on power managed stored in memory 109 is called to determine Position program, to realize following steps:
If it is abnormal to determine that the temperature management and control occurs according to a first state value, the mobile terminal is detected Whether 100 occur reboot operation;
If reboot operation does not occur for the mobile terminal 100, the key message point is read according to the 4th reading frequency State value.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to Before will positions the step of mobile terminal 100 restarts reason, processor 110 is additionally operable to call to be stored in memory 109 Finder is restarted based on power managed, to realize following steps:
Judge whether monitor the key message again in the first preset time after getting the progress information The temperature management and control of point corresponding position occurs abnormal;
If being monitored again in first preset time, the temperature management and control of the key message point corresponding position occurs It is abnormal, then store the progress information.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to After will positions the step of mobile terminal 100 restarts reason, processor 110 is additionally operable to call to be stored in memory 109 Finder is restarted based on power managed, to realize following steps:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor 100Kernel layers of power managed mould of mobile terminal default key message in the block After there is exception in the temperature management and control of point corresponding position, before reading the step of corresponding exception of the temperature management and control identifies, processing Device 110 is additionally operable to call what is stored in memory 109 to restart finder based on power managed, to realize following steps:
Determine it is Kernel layers described in power managed module call flow recognition node, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Further, described to monitor 100Kernel layers of power managed mould of mobile terminal default key message in the block After there is exception in the temperature management and control of point corresponding position, before reading the step of corresponding exception of the temperature management and control identifies, processing Device 110 is additionally operable to call what is stored in memory 109 to restart finder based on power managed, to realize following steps:
Determine whether the temperature management and control for monitoring the key message point corresponding position abnormal thread occurs, and by the line Journey is deployed in described Kernel layers of kthreadd processes and kernel processes.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., it does not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, propose to restart positioning the present invention is based on power managed Each embodiment of method.
The present invention provides a kind of restarting localization method based on power managed.
It is that the present invention is based on the flow diagrams for restarting localization method first embodiment of power managed with reference to Fig. 3, Fig. 3.
In the present embodiment, the embodiment for restarting localization method based on power managed is provided, it should be noted that though So logical order is shown in flow charts, but in some cases, it can be with different from shown by sequence execution herein Or the step of description.
In the present embodiment, being somebody's turn to do the localization method of restarting based on power managed includes:
Step S101, when monitoring that Kernel layers of power managed mould of mobile terminal default key message point in the block corresponds to position After exception occurs in the temperature management and control set, the corresponding abnormal mark of temperature management and control is read.
The present invention primarily directed to the scene for needing temperature in use management and control in Kernel layers of power managed module of mobile terminal, In power managed module, classified to the scene of temperature in use management and control according to the attribute of temperature management and control, and to sorted Temperature management and control carries out condition limitation, obtains power managed module and corresponds to standardized call flow and its internal basic function sequential Logic, specifically classifying rules and restrictive condition can be arranged according to specific needs, be not particularly limited herein.Wherein, The Kernel layers of system kernel layer for mobile terminal is mainly used for carrying out initialization management of process, memory management, load The related works such as Display (display), Camera Driver (camera driving) and Binder Driver (Binder drivings), and It is guarded for creating the kernels such as Core Operational thread kworkder, traps thread ksoftirqd and traps thread thermal Process.
When mobile terminal monitors the temperature of its Kernel layers of power managed mould default key message point corresponding position in the block After exception occurs in degree management and control, mobile terminal reads the corresponding abnormal mark of temperature management and control.Wherein, key message point is to pre-set Information point in the corresponding call flow of power managed module and its internal basic function sequential logic, stream is called for monitoring Whether journey and sequential logic there is abnormal information point.When monitoring call flow and/or the corresponding key message of sequential logic When the temperature management and control of point occurs abnormal, it is abnormal to confirm that corresponding call flow and/or sequential logic occur.Temperature management and control is corresponding Exception, which is identified as, to be pre-set, for indicating that abnormal mark occurs in temperature management and control.It should be noted that different crucial letters The abnormal mark of the corresponding temperature management and control of breath point is different.The setting rule that temperature management and control identifies extremely can be according to specific need It wants and is arranged, as long as ensureing to identify the corresponding temperature management and control of different key message points.
Further, include with reference to Fig. 4, step S101:
Step S1011 monitors Kernel layers of power managed mould of mobile terminal default key message point in the block when detecting Monitoring instruction after, according to Monitoring instruction read key message point state value.
Step S1012 determines whether the temperature management and control of key message point corresponding position exception occurs according to state value.
Step S1013 reads the corresponding abnormal mark of temperature management and control if exception occurs in temperature management and control.
When mobile terminal detects that the monitoring of monitoring its Kernel layers of power managed mould default key message point in the block refers to After order, the state value for presetting key message point is read according to Monitoring instruction, and determined according to state value and preset key message point pair Answer whether the temperature management and control of position exception occurs.If determining that the temperature management and control of key message point corresponding position occurs according to state value Abnormal, mobile terminal then reads the corresponding abnormal mark of temperature management and control.If determining key message point corresponding position according to state value Temperature management and control do not occur exception, then it represents that temperature management and control there is no it is corresponding it is abnormal identify, mobile terminal is read less than temperature The corresponding abnormal mark of management and control.
Wherein, state value is in correspondence with abnormality.In the present embodiment, between state value and abnormality Correspondence can limit according to specific needs, not be limited herein.It such as may be configured as working as some corresponding shape of key message point When state value is " 0 ", it is determined that the temperature management and control of key message point corresponding position does not occur exception;When some key message point corresponds to State value when being " 1 ", it is determined that the temperature management and control of key message point corresponding position occurs abnormal.
Step S102 matches abnormal identify with the daily record mark to prestore.
Step S103 is closed if abnormal mark identifies successful match with daily record according to daily record identifier lookup and daily record mark The log information of connection, and obtain the progress information of process corresponding with temperature management and control.
After getting temperature management and control corresponding abnormal mark, mobile terminal restarts acquired abnormal mark with storage The daily record mark stored in operation reason data library is matched.If abnormal mark identifies successful match, mobile terminal with daily record It then is identified to search in the database of storage reboot operation reason according to daily record and identifies associated log information with daily record, and obtained The progress information that process corresponding with temperature management and control carries out.Mobile terminal is caused to restart behaviour it should be noted that the daily record is identified as The corresponding mark of log information of work.Wherein, log information includes but not limited to that occur temperature management and control in power managed module different Occurs the position of temperature management and control exception in normal nodename and power managed module.Progress information includes but not limited to work as temperature When management and control occurs abnormal, the title of corresponding process relates to the title of thing process, the title of association thread and relates to thing process interaction Or the ID (identification, identity) and Thread Id and the corresponding power consumption pipe of key message point of association process Manage the functional node of module.
In the present embodiment, when mark is consistent with the daily record mark to prestore extremely, then confirm what exception identified and prestored Daily record identifies successful match;If abnormal mark and the daily record mark to prestore are inconsistent, the abnormal daily record for identifying and prestoring is confirmed It fails to match for mark.Such as when being identified as a extremely, is found in the database to identify the daily record mark of a, then confirm abnormal mark Successful match is identified with the daily record to prestore, otherwise, then confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.In other realities It applies in example, may be configured as then confirming the abnormal daily record for identifying and prestoring when mark is associated with the daily record mark to prestore extremely Successful match is identified, otherwise, confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as When associated daily record is identified as a2, if the exception when some key message point corresponding temperature management and control is identified as a1, and in database In find the daily record mark for being identified as a2, then confirm otherwise abnormal identify confirms different with the daily record mark successful match to prestore It fails to match for the daily record mark for often identifying and prestoring.
Step S104 restarts daily record according to progress information and log information generation, with mobile eventually according to daily record positioning is restarted Restart reason in end.
After getting progress information and log information, mobile terminal restarts day according to progress information and log information generation Will, and daily record will be restarted and exported to designated position, in order to which mobile terminal is after occurring reboot operation, corresponding staff can With quick obtaining, this restarts daily record, quickly determines that lead to mobile terminal reboot operation restarts reason according to daily record is restarted.
Further, in restarting logging process according to progress information and log information generation, mobile terminal is according to specific Format generation restart daily record, in order to which corresponding staff can quickly analyze mobile terminal according to daily record is restarted The reason of reboot operation.
Further, being somebody's turn to do the localization method of restarting based on power managed further includes:
It is corresponding to determine whether monitoring key message point corresponding position temperature management and control abnormal Monitoring instruction occurs by step a Thread, and thread is deployed in Kernel layers of kthreadd processes and kernel processes.
Further, mobile terminal determines its Kernel layers of power managed mould of monitoring when disposing Kernel layers of process Whether the temperature management and control of the default key point corresponding position of block, which abnormal Monitoring instruction occurs, corresponds to thread, and Monitoring instruction is corresponded to Thread be deployed in Kernel layers of kthreadd processes and kernel processes, in order to can be with Kernel layers of work(of monitored over time Whether the temperature management and control in consumption management module there is exception.It should be noted that the corresponding thread of Monitoring instruction is mobile whole It is independently operated in end.
The present embodiment monitors Kernel layers of power managed mould of mobile terminal default key message point pair in the block by working as After answering the temperature management and control of position exception occur, the corresponding abnormal mark of temperature management and control is read;By the abnormal daily record for identifying and prestoring Mark is matched;It is associated according to daily record identifier lookup and daily record mark if abnormal mark identifies successful match with daily record Log information, and obtain the progress information of process corresponding with temperature management and control;Restart day according to progress information and log information generation Will restarts daily record positioning mobile terminal with basis and restarts reason.It realizes before reboot operation does not occur for mobile terminal, in advance Obtaining mobile terminal can occur that reboot operation is corresponding to restart daily record, in order to after reboot operation occurs for mobile terminal, accordingly Staff can according to restart daily record quickly determine cause mobile terminal to be restarted the reason of, improve positioning mobile terminal hair The efficiency of raw the reason of restarting failure, and reduce human cost.
Further, the second implementation for restarting localization method the present invention is based on power managed is proposed based on first embodiment Example.The second embodiment for restarting localization method based on power managed and the first reality for restarting localization method based on power managed Applying example, difference lies in include according to the step of state value of Monitoring instruction reading key message point:
Step b reads the first state value of key message point preset quantity according to Monitoring instruction according to the first reading frequency.
Step c is read if first state value all temperature management and control according to preset quantity do not occur exception according to second Frequency is taken to read the second state value of key message point preset quantity.
Step d is read if the second state value all temperature management and control according to preset quantity do not occur exception according to third Frequency is taken to read the third state value of key message point, wherein the second reading frequency is more than the first reading frequency, is less than third and reads Take frequency.
Mobile terminal is in the process of state value for reading key message point according to Monitoring instruction:Mobile terminal is according to monitoring The first state value of key message point preset quantity is read in instruction according to the first reading frequency, and judges read preset quantity First state value whether can temperature management and control do not occur exception.If the first state value of read preset quantity can Temperature management and control does not occur exception, then the second state value of key message point preset quantity is read according to the second reading frequency, And judge read preset quantity the second state value whether can temperature management and control do not occur exception.If read pre- If the second state value of quantity can temperature management and control do not occur exception, then according to third reading frequency read key message point The third state value of preset quantity, to determine whether the temperature management and control of key message point corresponding position occurs according to third state value It is abnormal.
Wherein, the second reading frequency is more than the first reading frequency, and is less than third reading frequency.First reading frequency, Two reading frequencies, third reading frequency and preset quantity can be arranged according to specific needs, and such as the first reading frequency can be arranged It is primary to be read at interval of 1 second, the second reading frequency is set as reading once at interval of 3 seconds, third reading frequency is arranged Primary to be read at interval of 5 seconds, preset quantity is set as 5.I.e. when mobile terminal according to Monitoring instruction continuous 5 times with 1 second between After the state value of reading all shows that temperature management and control exception does not occur, it is corresponding continuously to read 5 key message points at interval of 3 seconds State value, if 5 state values read at interval of 3 seconds all show that temperature management and control does not occur exception, at interval of continuous reading in 5 seconds The corresponding state value of 5 key message points, key message point pair is determined according to 5 state values continuously read at interval of 5 seconds Answer whether the temperature management and control of position exception occurs.
It should be noted that in other embodiments, the reading that the dotted state value of key message is read in setting can be further added by Frequency, if all show that temperature management and control does not occur abnormal at interval of 5 state values that 5 seconds continuously read, at interval of 8 seconds companies It resumes studies and takes the corresponding state value of 5 key message points.This is not particularly limited in the present embodiment.
Further, being somebody's turn to do the localization method of restarting based on power managed further includes:
Step e detects whether mobile terminal occurs if there is exception according to a first state value temperature management and control Reboot operation.
Step f reads the state of key message point according to the 4th reading frequency if reboot operation does not occur for mobile terminal Value.
Further, if reading the first shape of key message point preset quantity according to the first reading frequency according to Monitoring instruction During state value, exception is occurred according to a first state value temperature management and control, mobile terminal then detects whether it occurs weight Open operation.If reboot operation does not occur for mobile terminal, mobile terminal reads the shape of key message point according to the 4th reading frequency State value.Further, if reboot operation occurs for mobile terminal, show that mobile terminal has been initialized, mobile terminal then detects Whether the Monitoring instruction of monitoring its Kernel layer power managed mould in the block default key message dotted state value is detected.Wherein, 4th reading frequency can be arranged according to specific needs, and such as the 4th reading frequency may be configured as equal with the first reading frequency, all It is set as reading at interval of 1 second primary;Or it is set as unequal with the first reading frequency, such as set the 4th reading frequency to It was read at interval of 0.8 second primary or primary every reading in 2 seconds.
In order to make it easy to understand, illustrating the process:When mobile terminal according to Monitoring instruction according to continuous at interval of 1 second During reading 5 dotted state value of key message, if the state value of the key message point read according to the 3rd second determines corresponding position House dog occur abnormal, and reboot operation does not occur for mobile terminal, and mobile terminal is then primary crucial according to being read at interval of 0.8 The state value (at this point, the 4th reading frequency is set as reading once for 0.8 second) of information point.
If it is understood that occurred according to second state value or third state value temperature management and control it is abnormal, Mobile terminal then detects whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, in power managed module key message point pair When the temperature management and control of position being answered not occur abnormal, increase the reading frequency for reading the dotted state value of key message, in temperature management and control When not occurring abnormal, the number for reading the dotted state value of key message is reduced.
Further, the third implementation for restarting localization method the present invention is based on power managed is proposed based on first embodiment Example.The 3rd embodiment for restarting localization method based on power managed and restart localization method first based on power managed And/or difference lies in reference to Fig. 5, be somebody's turn to do the localization method of restarting based on power managed further includes second embodiment:
Daily record is restarted in step S105, storage, and determines that is stored in the second preset time restarts daily record.
Step S106 executes de-redundancy operation, to save memory space to the log information stored in the second preset time.
After daily record is restarted in generation, daily record is restarted in mobile terminal storage, and determines the weight stored in the second preset time Daily record is opened, and de-redundancy operation is executed to the daily record of restarting stored in the second preset time, it is empty with the storage for saving mobile terminal Between.Specifically, in executing de-redundancy operating process, only storage belongs to one of same class reboot operation and restarts daily record, deletes Such reboot operation for being stored it is corresponding it is other restart daily record, what corresponding record belonged to same class reboot operation restarts daily record number Whether amount, and corresponding house dog have been changed into normal condition from abnormality, and record the house dog and turn from abnormality Become the fringe time of normal condition.Wherein, the second preset time can be arranged according to specific needs, such as can by second it is default when Between be set as 45 minutes, 60 minutes or 100 minutes etc..It should be noted that carrying out classification storage process to restarting daily record In, it can also classify according to the position restarted, not do herein according to classification storage is carried out the reason of restarting Limitation.
Such as when mobile terminal the abnormal phenomenon of temperature management and control, and mobile terminal occurs in this 60 minutes at 10 points to 11 points In store 1000 altogether and restart daily record.At this point, mobile terminal can be changed into normal condition in temperature management and control from abnormality Before, the daily record of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 restart in daily record, there are 520 Restart 1 class reboot operation of daily record corresponding A, restarts daily record for 360 and correspond to B1 class reboot operations, restart daily record for 120 and correspond to C1 classes Reboot operation, then only one A1 class reboot operation is corresponding restarts daily record for storage, deletes remaining 519 A1 class reboot operation and corresponds to Restart daily record, and record A1 class reboot operations correspond to restart daily record quantity be 520;One B1 class reboot operation of storage corresponds to Restart daily record, delete remaining 359 B1 class reboot operations be corresponding and restart daily record, and it is corresponding heavy to record B1 class reboot operations The quantity for opening daily record is 360;One C1 class reboot operation is corresponding restarts daily record for storage, deletes remaining 119 C1 class and restarts behaviour Make it is corresponding restart daily record, and record the corresponding quantity for restarting daily record of C1 class reboot operations be 120.
It should be noted that the de-redundancy operation scheme be readily applicable to progress information and log information, when into When journey information and log information carry out de-redundancy operation, specific operating process and the carry out de-redundancy for restarting daily record was operated Journey is consistent, and this will not be repeated here.
The present embodiment is mobile whole to save by carrying out de-redundancy operation to the daily record of restarting stored in the second preset time The memory space at end.
Further, being somebody's turn to do the localization method of restarting based on power managed further includes:
Step g judges whether monitor key message point again in the first preset time after getting progress information The temperature management and control of corresponding position occurs abnormal.
Step h, if it is different to monitor that the temperature management and control of key message point corresponding position occurs again in the first preset time Often, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal judges after getting progress information It is abnormal whether to monitor that the temperature management and control of key message point corresponding position occurs in first preset time again.If default first It is abnormal to monitor that the temperature management and control of key message point corresponding position occurs in time again, mobile terminal then stores process letter Breath, to restart daily record according to progress information generation.Further, if not monitoring crucial letter again in the first preset time There is exception in the temperature management and control of breath point corresponding position, and mobile terminal then deletes acquired progress information.Wherein, first it is default when Between can be arranged according to specific needs, can such as set the first preset time to 3 minutes, 5 minutes or 8 minutes etc..
In the present embodiment, by judge whether to monitor again in the first preset time temperature management and control occur it is abnormal come Improve the accuracy rate that positioning mobile terminal restarts reason.
Further, the 4th implementation for restarting localization method the present invention is based on power managed is proposed based on first embodiment Example.The fourth embodiment for restarting localization method based on power managed and restart localization method first based on power managed And/or difference lies in reference to Fig. 6, the localization method of restarting based on power managed further includes second embodiment:
Step S107 determines the recognition node of power managed module call flow in Kernel layers, load node, initialization Node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node, with And disk read-write running node.
Step S108, in recognition node, load node, initialization node, operation node, instruction dispatch node, striding course Key message is set in data communication node, unloading node, resource bid and release node and disk read-write running node Point.
In order to can be in accurate Kernel layer of fast positioning of mobile terminal the reason of power managed module generation reboot operation. Mobile terminal determines the recognition node of power managed module call flow in its Kernel layers, load node, initialization node, fortune Row node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk are read Write operation node, and in recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Key message point is set in communication node, unloading node, resource bid and release node and disk read-write running node, with Whether the temperature management and control for monitoring corresponding node by the key message point there is exception.It is understood that recognition node, load Node, initialization node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and Release node and disk read-write running node are nodes important in power managed module call flow.
Further, in order to which the reason of restarting of reboot operation can occur with fast positioning of mobile terminal, mobile terminal determines Key message is arranged in the corresponding each functional node of sequential logic in the sequential logic of power managed mould each function in the block Point.As the sequential logic of power managed mould some function in the block is:A → B → C → D, then in A nodes, B node, C nodes and D Key message point is respectively set in node.
It is understood that due to being arranged in the call flow of mobile terminal disparate modules corresponding with service and sequential logic Key message point, therefore, determine mobile terminal occur reboot operation after, can also according to the key message point determine restart The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layers or is power consumption pipe in Kernel layers The appearance such as reason module lead to reboot operation extremely.
The present embodiment passes through the recognition node of the call flow in power managed module, load node, initialization node, fortune Row node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk are read Key message point is arranged in write operation node, judges corresponding temperature by monitoring power managed mould each key message point in the block Whether management and control there is exception, to position the weight that reboot operation occurs for important node in mobile terminal power consumption management module call flow Open reason.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
The finder of restarting based on power managed is stored on the computer readable storage medium, it is described to be based on power consumption Following steps are realized in restarting when finder is executed by processor for management:
When the temperature for monitoring Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block After exception occurs in management and control, the corresponding abnormal mark of the temperature management and control is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and obtains the progress information of process corresponding with the temperature management and control;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal restarts reason.
Further, described to monitor Kernel layers of power managed mould of mobile terminal default key message point pair in the block After answering the temperature management and control of position exception occur, reading the step of corresponding exception of the temperature management and control identifies includes:
When the Monitoring instruction for detecting monitoring Kernel layers of power managed mould of mobile terminal default key message point in the block Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the temperature management and control of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the temperature management and control, the corresponding abnormal mark of the temperature management and control is read.
Further, the step of reading the state value of the key message point according to the Monitoring instruction include:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determining that the temperature management and control does not occur exception according to the first state value of preset quantity, according to second Reading frequency reads the second state value of the key message point preset quantity;
If all determining that the temperature management and control does not occur exception according to second state value of preset quantity, according to third Reading frequency reads the third state value of the key message point, wherein second reading frequency is more than described first and reads Frequency is less than the third reading frequency.
Further, the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of first state value, the restarting based on power managed realizes following step when finder is executed by processor Suddenly:
If it is abnormal to determine that the temperature management and control occurs according to a first state value, detecting the mobile terminal is No generation reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency State value.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to Before will positions the step of mobile terminal restarts reason, the finder of restarting based on power managed is held by processor Following steps are realized when row:
Judge whether monitor the key message again in the first preset time after getting the progress information The temperature management and control of point corresponding position occurs abnormal;
If being monitored again in first preset time, the temperature management and control of the key message point corresponding position occurs It is abnormal, then store the progress information.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to After will positions the step of mobile terminal restarts reason, the finder of restarting based on power managed is held by processor Following steps are realized when row:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor Kernel layers of power managed mould of mobile terminal default key message point pair in the block It is described to be based on before reading the step of corresponding exception of the temperature management and control identifies after answering the temperature management and control of position exception occur Following steps are realized in restarting when finder is executed by processor for power managed:
Determine it is Kernel layers described in power managed module call flow recognition node, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Further, described to monitor Kernel layers of power managed mould of mobile terminal default key message point pair in the block It is described to be based on before reading the step of corresponding exception of the temperature management and control identifies after answering the temperature management and control of position exception occur Following steps are realized in restarting when finder is executed by processor for power managed:
Determine whether monitor the key message point corresponding position temperature management and control abnormal thread occurs, and by the thread It is deployed in described Kernel layers of kthreadd processes and kernel processes.
Computer readable storage medium specific implementation mode of the present invention restarts localization method with above-mentioned based on power managed Each specific embodiment it is essentially identical, details are not described herein.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of restarting localization method based on power managed, which is characterized in that described to restart localization method applied to mobile whole End, it is described to restart localization method and include the following steps:
When the temperature management and control for monitoring Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block After there is exception, the corresponding abnormal mark of the temperature management and control is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, identified according to the daily record identifier lookup and the daily record Associated log information, and obtain the progress information of process corresponding with the temperature management and control;
Restart daily record according to the progress information and log information generation, the movement is positioned to restart daily record according to Terminal restarts reason.
2. restarting localization method based on power managed as described in claim 1, which is characterized in that described to monitor to move After exception occurs in the temperature management and control of Kernel layers of power managed mould of terminal default key message point corresponding position in the block, institute is read Stating the step of corresponding exception of temperature management and control identifies includes:
After detecting the Monitoring instruction of monitoring Kernel layers of power managed mould of mobile terminal default key message point in the block, root The state value of the key message point is read according to the Monitoring instruction;
Determine whether the temperature management and control of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the temperature management and control, the corresponding abnormal mark of the temperature management and control is read.
3. restarting localization method based on power managed as claimed in claim 2, which is characterized in that according to the Monitoring instruction The step of state value for reading the key message point includes:
The first state value of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction;
If all determining that the temperature management and control does not occur exception according to the first state value of preset quantity, read according to second Frequency reads the second state value of the key message point preset quantity;
If all determining that the temperature management and control does not occur exception according to second state value of preset quantity, read according to third Frequency reads the third state value of the key message point, wherein and second reading frequency is more than first reading frequency, Less than the third reading frequency.
4. restarting localization method based on power managed as claimed in claim 3, which is characterized in that according to the Monitoring instruction After the step of reading the first state value of the key message point preset quantity according to the first reading frequency, further include:
If it is abnormal to determine that the temperature management and control occurs according to a first state value, detect whether the mobile terminal is sent out Raw reboot operation;
If reboot operation does not occur for the mobile terminal, the state of the key message point is read according to the 4th reading frequency Value.
5. restarting localization method based on power managed as described in claim 1, which is characterized in that according to the progress information Restart daily record with log information generation, with restart according to daily record position the step of mobile terminal restarts reason it Before, further include:
Judge whether monitor the key message point pair again in the first preset time after getting the progress information The temperature management and control of position is answered to occur abnormal;
If it is abnormal to monitor that the temperature management and control of the key message point corresponding position occurs again in first preset time, Then store the progress information.
6. restarting localization method based on power managed as described in claim 1, which is characterized in that according to the progress information Restart daily record with log information generation, with restart according to daily record position the step of mobile terminal restarts reason it Afterwards, further include:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
7. as claim 1 to 6 any one of them restarts localization method based on power managed, which is characterized in that described to work as It is different to monitor that the temperature management and control of Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block occurs Chang Hou further includes before the step of reading the temperature management and control corresponding abnormal mark:
Determine it is Kernel layers described in power managed module call flow recognition node, load node, initialization node, operation Node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk read-write Running node;
In the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data communication section Key message point is set in point, unloading node, resource bid and release node and disk read-write running node.
8. as claim 1 to 6 any one of them restarts localization method based on power managed, which is characterized in that described to work as It is different to monitor that the temperature management and control of Kernel layers of power managed mould of mobile terminal default key message point corresponding position in the block occurs Chang Hou further includes before the step of reading the temperature management and control corresponding abnormal mark:
Determine whether the temperature management and control for monitoring the key message point corresponding position abnormal thread occurs, and by the thread portion Administration is in described Kernel layers of kthreadd processes and kernel processes.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Above and what can be run on the processor restarts finder based on power managed, and the restarting based on power managed is determined Position program realizes that restarting based on power managed is determined as described in any item of the claim 1 to 8 when being executed by the processor The step of position method.
10. a kind of computer readable storage medium, which is characterized in that be stored with based on work(on the computer readable storage medium Finder is restarted in consumption management, and the restarting based on power managed is realized when finder is executed by processor as right is wanted Ask described in any one of 1 to 8 based on power managed the step of restarting localization method.
CN201810099508.XA 2018-01-31 2018-01-31 Restart positioning method based on power consumption management, mobile terminal and readable storage medium Active CN108334433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810099508.XA CN108334433B (en) 2018-01-31 2018-01-31 Restart positioning method based on power consumption management, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810099508.XA CN108334433B (en) 2018-01-31 2018-01-31 Restart positioning method based on power consumption management, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108334433A true CN108334433A (en) 2018-07-27
CN108334433B CN108334433B (en) 2022-01-14

Family

ID=62926852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810099508.XA Active CN108334433B (en) 2018-01-31 2018-01-31 Restart positioning method based on power consumption management, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN108334433B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117479201A (en) * 2023-12-26 2024-01-30 杭州纵横通信股份有限公司 Base station operation and maintenance management method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070070562A (en) * 2005-12-29 2007-07-04 주식회사 팬택 Error reporting system for a mobile phone and error management server
CN102479113A (en) * 2010-11-30 2012-05-30 中国移动通信集团黑龙江有限公司 Abnormal self-adapting processing method and system
CN106888125A (en) * 2017-03-30 2017-06-23 努比亚技术有限公司 A kind of method for processing abnormal shutdown daily record, mobile terminal and server
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070070562A (en) * 2005-12-29 2007-07-04 주식회사 팬택 Error reporting system for a mobile phone and error management server
CN102479113A (en) * 2010-11-30 2012-05-30 中国移动通信集团黑龙江有限公司 Abnormal self-adapting processing method and system
CN106888125A (en) * 2017-03-30 2017-06-23 努比亚技术有限公司 A kind of method for processing abnormal shutdown daily record, mobile terminal and server
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117479201A (en) * 2023-12-26 2024-01-30 杭州纵横通信股份有限公司 Base station operation and maintenance management method and system
CN117479201B (en) * 2023-12-26 2024-04-09 杭州纵横通信股份有限公司 Base station operation and maintenance management method and system

Also Published As

Publication number Publication date
CN108334433B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN108040159A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108052412A (en) Restart Fault Locating Method, mobile terminal and computer readable storage medium
CN108920306A (en) What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109375907A (en) Auditing flow development approach, business audit method, apparatus, equipment and medium
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
CN107766523A (en) A kind of file management method, mobile terminal and computer-readable recording medium
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108196969A (en) Restart monitoring and localization method, mobile terminal and computer readable storage medium
CN108121613A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN108089937A (en) Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN108182123A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108052437A (en) Restart localization method, mobile terminal and computer readable storage medium
CN108255631A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107908491A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN107766222A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN109710338A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN109165110A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108268335A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on system service
CN107943397A (en) A kind of note generation method, mobile terminal and computer-readable recording medium
CN109298964A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108076200A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108228423A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108021298A (en) Utilize the method and device of shear plate paste information

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