CN109376044A - Mobile terminal restarts localization method, mobile terminal and computer readable storage medium - Google Patents

Mobile terminal restarts localization method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109376044A
CN109376044A CN201811284938.5A CN201811284938A CN109376044A CN 109376044 A CN109376044 A CN 109376044A CN 201811284938 A CN201811284938 A CN 201811284938A CN 109376044 A CN109376044 A CN 109376044A
Authority
CN
China
Prior art keywords
mobile terminal
log
bus
key message
node
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
CN201811284938.5A
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.)
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 CN201811284938.5A priority Critical patent/CN109376044A/en
Publication of CN109376044A publication Critical patent/CN109376044A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of mobile terminals to restart localization method, mobile terminal and computer readable storage medium, the method comprising the steps of: after monitoring that the I2C bus for presetting key message point corresponding position in mobile terminal Kernel layer interface management module is in abnormality, reading the corresponding abnormal mark of I2C bus;Abnormal identify is matched with the log mark prestored;If abnormal mark identifies successful match with log, associated log information is identified according to log identifier lookup and log, and obtain the progress information of process corresponding with I2C bus;Log is restarted according to progress information and log information generation, and log positioning mobile terminal is restarted with basis and restarts reason.The present invention improves positioning mobile terminal and restarts the efficiency of reason, and reduces human cost.

Description

Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to fields of communication technology more particularly to a kind of mobile terminal to restart localization method, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become people's work and life Indispensable tool.User is during using mobile terminal, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole End the reason of being restarted automatically may be it is already present before city on mobile terminals, only developer does not have found.At this point, User needs the mobile terminal returning factory, carries out a large amount of test job by tester, to determine original that mobile terminal is restarted Cause.Currently, the method for restart pressure test to mobile terminal operating system is still using manual testing in testing field Method, restart mobile phone manually, then carry out pressure test.However, this test method excessively labor intensive and time, especially It is to the lower mobile terminal of loophole BUG recurrence rate, for example, mobile terminal, which restarts 1000 times, just may only occur once or several times The investment of BUG, time and manpower is excessive and output very little, it is obvious that reboot operation reason occurs for this analysis mobile terminal Way is extremely inefficient.
Summary of the invention
It is a primary object of the present invention to propose that a kind of mobile terminal restarts localization method, mobile terminal and computer-readable Storage medium, it is intended to solve the problems, such as existing the reason of being unable to fast positioning of mobile terminal generation reboot operation.
To achieve the above object, the present invention provides a kind of mobile terminals to restart localization method, and the mobile terminal is restarted Localization method includes:
When the I2C bus for monitoring to preset key message point corresponding position in mobile terminal Kernel layer interface management module After abnormality, the corresponding abnormal mark of the I2C bus is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the I2C bus;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal restarts reason.
Optionally, described to monitor that key message point is preset in mobile terminal Kernel layer interface management module corresponds to position After the I2C bus set is in abnormality, reading the step of corresponding exception of the I2C bus identifies includes:
After detecting the Monitoring instruction of default key message point in monitoring mobile terminal Kernel layer interface management module, The state value of the key message point is read according to the Monitoring instruction;
Determine whether the I2C bus of the key message point corresponding position is in abnormality according to the state value;
If the I2C bus is in abnormality, the corresponding abnormal mark of the I2C bus is read.
Optionally, the step of state value that the key message point is read according to the Monitoring instruction includes:
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 I2C bus is in normal condition according to the first state value of preset quantity, according to Two reading frequencies read the second state value of the key message point preset quantity;
If all determining that the I2C bus is in normal condition according to second state value of preset quantity, according to Three reading frequencies read the third state value of the key message point, wherein second reading frequency is greater than described first and reads Frequency is taken, the third reading frequency is less than.
Optionally, described that the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction First state value the step of after, further includes:
If determining that the I2C bus is in abnormality according to a first state value, detect described mobile whole Whether end occurs 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, described that log is restarted according to the progress information and log information generation, to restart according to Log positioned before the step of mobile terminal restarts reason, further includes:
Judge getting in the first preset time after the progress information whether monitor the key message again The I2C bus of point corresponding position is in abnormality;
If monitoring again in first preset time, the I2C bus of the key message point corresponding position is in different Normal state then stores the progress information.
Optionally, described that log is restarted according to the progress information and log information generation, to restart according to Log positioned after the step of mobile terminal restarts reason, further includes:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Optionally, described to monitor that key message point is preset in mobile terminal Kernel layer interface management module corresponds to position After the I2C bus set is in abnormality, before the step of reading the I2C bus corresponding abnormal mark, further includes:
It determines the recognition node of interface administration module call flow in Kernel layers described, load node, operation node, refer to Enable allotment node, striding course data communication node, unloading node, memory source application and release node and disk read-write behaviour Make node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading Key message point is set in node, memory source application and release node and disk read-write running node.
Optionally, described to monitor that key message point is preset in mobile terminal Kernel layer interface management module corresponds to position After the I2C bus set is in abnormality, before the step of reading the I2C bus corresponding abnormal mark, further includes:
The Monitoring instruction for determining whether the monitoring key message point corresponding position I2C bus is in abnormality is corresponding Thread, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
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 in the mobile terminal that can be run on the memory and on the processor and restarts finder, the shifting Dynamic terminal, which is restarted, realizes that mobile terminal as described above restarts the step of localization method when finder is executed by the processor Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with mobile terminal on storage medium and restarts finder, the mobile terminal is restarted real when finder is executed by processor The step of mobile terminal now as described above restarts localization method.
The present invention, which passes through to work as, monitors that key message point is preset in mobile terminal Kernel layer interface management module corresponds to position After the I2C bus set is in abnormality, the corresponding abnormal mark of the I2C bus is read;By the exception mark and prestore Log mark matched;If the abnormal mark identifies successful match with the log, looked into according to log mark It looks for and identifies associated log information with the log, and obtain the progress information of process corresponding with the I2C bus;According to described Log is restarted in progress information and log information generation, restarts original to restart the log 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 Log is opened, in order to which after reboot operation occurs for mobile terminal, corresponding staff can quickly determine according to log is restarted The reason of causing mobile terminal to be restarted, improves positioning mobile terminal and restarts the efficiency of reason, and reduces human cost.
Detailed description of the invention
A kind of Fig. 1 hardware structural diagram of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment;
Fig. 4 is a kind of flow diagram of step S10 in the embodiment of the present invention;
Fig. 5 is the flow diagram that mobile terminal of the present invention restarts localization method 3rd embodiment;
Fig. 6 is the flow diagram that mobile terminal of the present invention restarts localization method fourth embodiment.
The realization, the function and the advantages of the object of the present invention will be explained referring to attached drawing in conjunction with the embodiments.
Specific embodiment
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, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no 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, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move 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, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic 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 shifting 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 layout of person.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal 100:
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 wireless communication.Any communication can be used in above-mentioned wireless 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 It sends e-mails, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.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 omits within the scope of not changing the essence of the 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, by radio frequency unit 101 or Wi-Fi module 102 it is 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 to 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 loudspeaker, 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, it can detect that size and the direction of gravity 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 can 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 setting 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 the touch operation of user on it or nearby (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 stick etc. It is one or more, specifically herein without limitation.
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 the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it 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 transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area 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, it 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, processor 110 is for calling the mobile terminal stored in memory 109 in mobile terminal shown in Fig. 1 Restart finder, and execute following operation:
As the I2C for monitoring to preset key message point corresponding position in mobile terminal 100Kernel layer interface management module After bus is in abnormality, the corresponding abnormal mark of the I2C bus is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the I2C bus;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal 100 restarts reason.
Further, described to monitor to preset key message point in mobile terminal 100Kernel layer interface management module After the I2C bus of corresponding position is in abnormality, reading the step of corresponding exception of the I2C bus identifies includes:
When the Monitoring instruction for detecting default key message point in monitoring mobile terminal 100Kernel layer interface management module Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the I2C bus of the key message point corresponding position is in abnormality according to the state value;
If the I2C bus is in abnormality, the corresponding abnormal mark of the I2C bus is read.
Further, the step of state value that the key message point is read according to the Monitoring instruction includes:
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 I2C bus is in normal condition according to the first state value of preset quantity, according to Two reading frequencies read the second state value of the key message point preset quantity;
If all determining that the I2C bus is in normal condition according to second state value of preset quantity, according to Three reading frequencies read the third state value of the key message point, wherein second reading frequency is greater than described first and reads Frequency is taken, the third reading frequency is less than.
Further, described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction After the step of first state value of amount, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart Finder, to perform the steps of
If determining that the I2C bus is in abnormality according to a first state value, detect described mobile whole Whether end 100 occurs 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, described that log is restarted according to the progress information and log information generation, according to described heavy Before opening the step of log positioning mobile terminal 100 restarts reason, processor 110 is also used to call and deposit in memory 109 The mobile terminal 100 of storage restarts finder, to perform the steps of
Judge getting in the first preset time after the progress information whether monitor the key message again The I2C bus of point corresponding position is in abnormality;
If monitoring again in first preset time, the I2C bus of the key message point corresponding position is in different Normal state then stores the progress information.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy After opening the step of log positioning mobile terminal 100 restarts reason, processor 110 is also used to call and deposit in memory 109 The mobile terminal 100 of storage restarts finder, to perform the steps of
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor to preset key message point in mobile terminal 100Kernel layer interface management module After the I2C bus of corresponding position is in abnormality, before reading the I2C bus corresponding abnormal the step of identifying, processing Device 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart finder, to perform the steps of
It determines the recognition node of interface administration module call flow in Kernel layers described, load node, operation node, refer to Enable allotment node, striding course data communication node, unloading node, memory source application and release node and disk read-write behaviour Make node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading Key message point is set in node, memory source application and release node and disk read-write running node.
Further, described to monitor to preset key message point in mobile terminal 100Kernel layer interface management module After the I2C bus of corresponding position is in abnormality, before reading the I2C bus corresponding abnormal the step of identifying, processing Device 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart finder, to perform the steps of
The Monitoring instruction for determining whether the monitoring key message point corresponding position I2C bus is in abnormality is corresponding Thread, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
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, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land 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 preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource 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 should know the present invention is 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., herein without limitation.
Based on above-mentioned terminal hardware structure and communications network system, propose that mobile terminal of the present invention restarts localization method Each embodiment.
The present invention provides a kind of mobile terminal and restarts localization method.
Referring to Fig. 3, Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment.
In the present embodiment, the embodiment that mobile terminal restarts localization method is provided, it should be noted that although flowing Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein The step of.
In the present embodiment, mobile terminal restarts localization method and includes:
Step S10, when monitor in mobile terminal Kernel layer interface management module preset key message point corresponding position I2C bus be in abnormality after, read the corresponding abnormal mark of I2C bus.
The present invention primarily directed to the scene needed in mobile terminal Kernel layer interface management module using I2C bus, In interface administration module, mobile terminal is carried out according to the usage scenario of I2C (Inter-Integrated Circuit) bus Classification such as can will call the corresponding scene of I2C bus to be divided into one kind, and the corresponding scene of release I2C bus is divided into one kind etc..? After being classified according to the usage scenario of I2C bus, mobile terminal determines the corresponding calling of every one kind I2C bus after sorting Process and/or sequential logic, are standardized call flow and/or sequential logic, i.e., in call flow and/or sequential logic In main functional node be arranged key message point, with obtain interface administration module correspond to standardized call flow with its inside Basic function sequential logic.It such as determines the call flow and/or sequential logic called in I2C bus procedure, is calling I2C bus Key message point is set in corresponding call flow and/or the major function node of sequential logic.Wherein, I2C bus be by A kind of simple, bidirectional two-line synchronous serial bus of Philips company exploitation, it only needs both threads that can be connected to always Information is transmitted between device on line.The Kernel layers of system kernel layer for mobile terminal is mainly used for carrying out initialization process Management, memory management, load Display (display), Camera Driver (camera driving) and Binder Driver (Binder Driving) etc. related works, and for creating Core Operational thread kworkder, traps thread ksoftirqd and traps line The kernels finger daemon such as journey thermal.
When mobile terminal monitors that the I2C for presetting key message point corresponding position in its Kernel layer interface management module is total After line is in abnormality, mobile terminal reads the corresponding abnormal mark of I2C bus.Wherein, key message point is to preset Information point in the corresponding call flow of interface administration module and its internal basic function sequential logic, calls stream for monitoring Whether journey and sequential logic are in the information point of abnormality.When monitoring call flow and/or the corresponding key of sequential logic The I2C bus of information point is when in an abnormal state, confirms that corresponding call flow and/or sequential logic are in abnormality.I2C The corresponding exception of bus, which is identified as, to be pre-set, for indicating that I2C bus is in the mark of abnormality.It needs to illustrate It is that the abnormal mark of the corresponding I2C bus of different key message points is different.The setting rule that I2C bus identifies extremely It is arranged according to specific needs, as long as guaranteeing to identify the corresponding I2C bus of different key message points.In this reality It applies in example, I2C bus is in abnormality and is represented by I2C exception.
Further, include: referring to Fig. 4, step S10
Step S11, when the prison for detecting default key message point in monitoring mobile terminal Kernel layer interface management module After surveying instruction, the state value of key message point is read according to Monitoring instruction.
Step S12 determines whether the I2C bus of key message point corresponding position is in abnormality according to state value.
Step S13 reads the corresponding abnormal mark of I2C bus if I2C bus is in abnormality.
The Monitoring instruction that key message point is preset in its Kernel layer interface management module is monitored when mobile terminal detects Afterwards, the state value of default key message point is read according to Monitoring instruction, and determines that default key message point is corresponding according to state value Whether the I2C bus of position is in abnormality.If determining that the I2C bus of key message point corresponding position is according to state value Abnormality, mobile terminal then read the corresponding abnormal mark of I2C bus.If determining that key message point corresponds to position according to state value The I2C bus set is in normal condition, then it represents that there is no corresponding abnormal mark, mobile terminals to read less than I2C for I2C bus The corresponding abnormal mark of bus.
Wherein, there are corresponding relationships with abnormality for state value.In the present embodiment, between state value and abnormality Corresponding relationship limits according to specific needs, herein with no restrictions.It such as may be configured as when some corresponding shape of key message point When state value is " 0 ", it is determined that the I2C bus of key message point corresponding position is in normal condition;When some key message point pair When the state value answered is " 1 ", it is determined that the I2C bus of key message point corresponding position is in abnormality.In the present embodiment, I2C bus, which is in abnormality, can be regarded as I2C bus exception.
Step S20 matches abnormal identify with the log mark prestored.
Step S30 is associated with according to log identifier lookup with log mark if abnormal mark identifies successful match with log Log information, and obtain the progress information of corresponding with I2C bus process.
After getting I2C bus corresponding abnormal mark, mobile terminal can then trigger by acquired abnormal mark with The log mark stored in storage reboot operation reason data library carries out matched matching instruction.After triggering the matching instruction, Mobile terminal matches abnormal mark with log mark according to the matching instruction.If abnormal mark is matched into log mark Function, mobile terminal, which then identifies to search in the database of storage reboot operation reason according to log, identifies associated log with log Information, and obtain the progress information that process corresponding with I2C bus carries out.It should be noted that the log, which is identified as, to cause to move The corresponding mark of the log information of terminal reboot operation.Wherein, log information includes but is not limited to occur in interface administration module Occurs the position of I2C bus exception in the nodename and interface administration module of I2C bus exception.Progress information includes but unlimited In when I2C bus it is when in an abnormal state, the title of corresponding process, that is, the title for relating to thing process, the title for being associated with thread, with relate to The ID (identification, identity) and Thread Id and key message point pair of thing process interaction or association process The functional node for the interface administration module answered.
In the present embodiment, when mark is consistent with the log mark prestored extremely, then confirm what exception was identified and prestored Log identifies successful match;If abnormal mark and the log mark prestored are inconsistent, the abnormal log 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 log of a mark, then confirm abnormal mark Successful match is identified with the log prestored, otherwise, then confirms that it fails to match for the abnormal log mark for identifying and prestoring.In other realities It applies in example, may be configured as then confirming the abnormal log for identifying and prestoring when mark is associated with the log mark prestored extremely Successful match is identified, otherwise, confirms that it fails to match for the abnormal log mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as When associated log is identified as a2, if when the exception that some key message point corresponds to I2C bus is identified as a1, and in the database The log mark for being identified as a2 is found, then confirms the abnormal log mark successful match for identifying and prestoring, otherwise, confirmation is abnormal It fails to match for the log mark for identifying and prestoring.
Step S40 restarts log according to progress information and log information generation, restarts log positioning mobile terminal with basis Restart reason.
After getting progress information and log information, mobile terminal restarts day according to progress information and log information generation Will, and log 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 log, quickly determines that lead to mobile terminal reboot operation restarts reason according to log is restarted.
Further, restart in logging process according to progress information and log information generation, mobile terminal is according to specific Format generation restart log, in order to which corresponding staff can quickly analyze mobile terminal according to log is restarted The reason of reboot operation.
Further, mobile terminal restarts localization method further include:
Step a, the Monitoring instruction whether determining monitoring key message point corresponding position I2C bus is in abnormality are corresponding Thread, and thread is deployed in Kernel layers of Kthreadd process and kernel process.
Further, mobile terminal determines that monitoring its Kernel layer interface manages mould when disposing Kernel layers of process The Monitoring instruction whether the I2C bus that block presets key point corresponding position is in abnormality corresponds to thread, and by Monitoring instruction Corresponding thread is deployed in Kernel layers of Kthreadd process and kernel process, in order to can be with monitored over time Kernel Whether the I2C bus in layer interface management module is in abnormality.It should be noted that the corresponding thread of Monitoring instruction is moving It is independently operated in dynamic terminal.
The present embodiment, which passes through to work as, monitors that key message point is preset in mobile terminal Kernel layer interface management module to be corresponded to After the I2C bus of position is in abnormality, the corresponding abnormal mark of I2C bus is read;By the abnormal log for identifying and prestoring Mark is matched;It is associated according to log identifier lookup and log mark if abnormal mark identifies successful match with log Log information, and obtain the progress information of process corresponding with I2C bus;Day is restarted according to progress information and log information generation Will restarts log 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 log, in order to after reboot operation occurs for mobile terminal, accordingly Staff can according to restart log quickly determine cause mobile terminal to be restarted the reason of, improve positioning mobile terminal weight The efficiency of reason is opened, and reduces human cost.
Further, propose that mobile terminal of the present invention restarts the second embodiment of localization method based on first embodiment.It moves The difference for the first embodiment that the second embodiment that dynamic terminal restarts localization method restarts localization method with mobile terminal is, root According to Monitoring instruction read key message point state value the step of include:
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, if all being determined according to the first state value of preset quantity, I2C bus is in normal condition, according to second Second state value of reading frequency reading key message point preset quantity.
Step d, if all being determined according to the second state value of preset quantity, I2C bus is in normal condition, according to third The third state value of reading frequency reading key message point, wherein the second reading frequency is greater than the first reading frequency, is less than third Reading frequency.
Process of the mobile terminal in the state value for reading key message point according to Monitoring instruction are as follows: 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 determine that I2C bus is in normal condition.If the first state value of read preset quantity is all It can determine that I2C bus is in normal condition, then read the second state of key message point preset quantity according to the second reading frequency Value, and judge whether the second state value of read preset quantity can determine that I2C bus is in normal condition.If being read The second state value of preset quantity can determine that I2C bus is in normal condition, then read according to third reading frequency crucial The third state value of information point preset quantity, to determine that the I2C bus of key message point corresponding position is according to third state value It is no to be in abnormality.
Wherein, the second reading frequency is greater than the first reading frequency, and is less than third reading frequency.First reading frequency, Two reading frequencies, third reading frequency and preset quantity are 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 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 It is corresponding at interval of 3 seconds continuous 5 key message points of reading after the state value of reading all shows that I2C bus is in normal condition State value, if at interval of 3 seconds read 5 state values all show that I2C bus be in normal condition, at interval of 5 seconds continuously The corresponding state value of 5 key message points is read, determines key message according to 5 state values continuously read at interval of 5 seconds Whether the I2C bus of point corresponding position is in abnormality.
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 I2C bus is in normal condition at interval of 5 state values that 5 seconds continuously read, at interval of 8 seconds Continuously read the corresponding state value of 5 key message points.It is without limitation in the present embodiment.
Further, mobile terminal restarts localization method further include:
Whether step e detects mobile terminal if determining that I2C bus is in abnormality according to a first state value Reboot operation occurs.
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, determine that I2C bus is in abnormality according to a first state value, mobile terminal then detects whether it occurs Reboot operation.If reboot operation does not occur for mobile terminal, mobile terminal reads 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 is then examined Survey the Monitoring instruction for whether detecting and monitoring and presetting the dotted state value of key message in its Kernel layer interface management module.Wherein, 4th reading frequency is 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 I2C bus be in abnormality, and reboot operation does not occur for mobile terminal, and mobile terminal then reads one according 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 secondary key message point.
It is understood that if determining that I2C bus is in abnormal shape according to second state value or third state value State, mobile terminal then detect whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, in interface administration module key message point pair When the I2C bus of position being answered to be in normal condition, increase the reading frequency for reading the dotted state value of key message, in I2C bus When in normal condition, the number for reading the dotted state value of key message is reduced.
Further, propose that mobile terminal of the present invention restarts the 3rd embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the 3rd embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment It is not, referring to Fig. 5, mobile terminal restarts localization method further include:
Log is restarted in step S50, storage, and determines that is stored in the second preset time restarts log.
Step S60 executes de-redundancy operation to the log information stored in the second preset time, to save memory space.
After log is restarted in generation, log is restarted in mobile terminal storage, and determines the weight stored in the second preset time Log is opened, and de-redundancy operation is executed to the log 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 log, deletes Such reboot operation stored it is corresponding it is other restart log, what corresponding record belonged to same class reboot operation restarts log number Whether amount, and corresponding I2C bus have been changed into normal condition from abnormality, and record the I2C bus from abnormality It is changed into the fringe time of normal condition.Wherein, the second preset time is arranged according to specific needs, can such as preset second Time is set as 45 minutes, 60 minutes or 100 minutes etc..It should be noted that carrying out classification storage process to log is restarted In, it can also can classify according to the position restarted, not do herein according to classification storage is carried out the reason of restarting Limitation.
Such as when the I2C bus abnormal phenomenon that mobile terminal occurs in this 60 minutes at 10 points to 11 points, and mobile terminal In store 1000 altogether and restart log.At this point, mobile terminal can I2C bus from abnormality be changed into normal condition it Before, the log of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 restart in log, there are 520 weights 1 class reboot operation of log corresponding A is opened, log is restarted for 360 and corresponds to B1 class reboot operation, restart log for 120 and correspond to C1 class weight Operation is opened, then only one A1 class reboot operation is corresponding restarts log for storage, and it is corresponding to delete remaining 519 A1 class reboot operation Restart log, and recording the corresponding quantity for restarting log of A1 class reboot operation is 520;It is corresponding to store a B1 class reboot operation Restart log, delete remaining 359 B1 class reboot operations are corresponding and restart log, and records that B1 class reboot operation is corresponding to restart The quantity of log is 360;It stores that a C1 class reboot operation is corresponding to restart log, deletes remaining 119 C1 class reboot operation It is corresponding to restart log, and recording the corresponding quantity for restarting log of C1 class reboot operation is 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 log 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 log of restarting stored in the second preset time The memory space at end.
Further, mobile terminal restarts localization method further include:
Step g judges getting whether monitor key message point in the first preset time after progress information again The I2C bus of corresponding position is in abnormality.
Step h, if monitoring again in the first preset time, the I2C bus of key message point corresponding position is in abnormal State, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal judges after getting progress information Whether monitor that the I2C bus of key message point corresponding position is in abnormality in first preset time again.If first Monitor that the I2C bus of key message point corresponding position is in abnormality in preset time again, mobile terminal then stores should Progress information, to restart log according to progress information generation.Further, if not monitored again in the first preset time The I2C bus of key message point corresponding position is in abnormality, and mobile terminal then deletes acquired progress information.Wherein, First preset time is arranged according to specific needs, can such as set the first preset time to 3 minutes, 5 minutes or 8 points Clock etc..
Further, for mobile terminal in storage process information process, mobile terminal determines the acquisition for obtaining progress information Time, according to acquisition time storage process information from front to back, up front by the carry out information arrangement finally obtained.
In the present embodiment, by judging whether monitor that I2C bus is in abnormal shape again in the first preset time State determines whether storage process information, empty with the storage for saving mobile terminal to control the quantity of stored progress information Between.
Further, propose that mobile terminal of the present invention restarts the fourth embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the fourth embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment It is not, referring to Fig. 6, mobile terminal restarts localization method further include:
Step S70 determines the recognition node of interface administration module call flow in Kernel layers, load node, operation section Point, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk are read Write operation node.
Step S80, recognition node, load node, operation node, instruction dispatch node, striding course data communication node, It unloads node, memory source application and discharges and key message point is set in node and disk read-write running node.
In order to can be in accurate Kernel layer of fast positioning of mobile terminal the reason of interface administration module generation reboot operation. Mobile terminal determines the recognition node of interface administration module call flow in its Kernel layers, load node, operation node, instruction Deploy node, striding course data communication node, unloading node, memory source application and release node and disk read-write operation Node, and recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading node, Key message point is set in memory source application and release node and disk read-write running node, to pass through the key message Whether the I2C bus of point monitoring corresponding node is in abnormality.It is understood that recognition node, load node, operation section Point, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk are read Write operation node is node important in interface administration module call flow.Frequency control node is the frequency of I2C bus Control node.
Further, in order to restart reason with fast positioning of mobile terminal generation reboot operation, mobile terminal is determined Key message is arranged in the corresponding each functional node of sequential logic in the sequential logic of each function in interface administration module Point.Such as the sequential logic of some function in interface administration module are as follows: A → B → C → D, then in A node, B node, C node and D section Key message point is respectively set in point.
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 determination restart The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layer or is mouthpiece in Kernel layers The appearance such as reason module lead to reboot operation extremely.
The recognition node, load node, operation node, instruction that the present embodiment passes through the call flow in interface administration module Deploy node, striding course data communication node, unloading node, memory source application and release node and disk read-write operation Key message point is arranged in node, whether judges corresponding I2C bus by each key message point in monitoring interface administration module In abnormality, original is restarted with position that reboot operation occurs for important node in mobile terminal interface management module call flow Cause.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
It is stored with mobile terminal on the computer readable storage medium and restarts finder, the mobile terminal is restarted fixed Position program realizes following steps when being executed by processor:
When the I2C bus for monitoring to preset key message point corresponding position in mobile terminal Kernel layer interface management module After abnormality, the corresponding abnormal mark of the I2C bus is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the I2C bus;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal restarts reason.
Further, described to monitor that key message point is preset in mobile terminal Kernel layer interface management module to be corresponded to After the I2C bus of position is in abnormality, reading the step of corresponding exception of the I2C bus identifies includes:
After detecting the Monitoring instruction of default key message point in monitoring mobile terminal Kernel layer interface management module, The state value of the key message point is read according to the Monitoring instruction;
Determine whether the I2C bus of the key message point corresponding position is in abnormality according to the state value;
If the I2C bus is in abnormality, the corresponding abnormal mark of the I2C bus is read.
Further, the step of state value that the key message point is read according to the Monitoring instruction includes:
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 I2C bus is in normal condition according to the first state value of preset quantity, according to Two reading frequencies read the second state value of the key message point preset quantity;
If all determining that the I2C bus is in normal condition according to second state value of preset quantity, according to Three reading frequencies read the third state value of the key message point, wherein second reading frequency is greater than described first and reads Frequency is taken, the third reading frequency is less than.
Further, described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction After the step of first state value of amount, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
If determining that the I2C bus is in abnormality according to a first state value, detect described mobile whole Whether end occurs 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, described that log is restarted according to the progress information and log information generation, according to described heavy Before opening the step of log positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor Shi Shixian following steps:
Judge getting in the first preset time after the progress information whether monitor the key message again The I2C bus of point corresponding position is in abnormality;
If monitoring again in first preset time, the I2C bus of the key message point corresponding position is in different Normal state then stores the progress information.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy After opening the step of log positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor Shi Shixian following steps:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor that key message point is preset in mobile terminal Kernel layer interface management module to be corresponded to After the I2C bus of position is in abnormality, before reading the I2C bus corresponding abnormal the step of identifying, the movement Terminal, which is restarted when finder is executed by processor, realizes following steps:
It determines the recognition node of interface administration module call flow in Kernel layers described, load node, operation node, refer to Enable allotment node, striding course data communication node, unloading node, memory source application and release node and disk read-write behaviour Make node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading Key message point is set in node, memory source application and release node and disk read-write running node.
Further, described to monitor that key message point is preset in mobile terminal Kernel layer interface management module to be corresponded to After the I2C bus of position is in abnormality, before reading the I2C bus corresponding abnormal the step of identifying, the movement Terminal, which is restarted when finder is executed by processor, realizes following steps:
The Monitoring instruction for determining whether the monitoring key message point corresponding position I2C bus is in abnormality is corresponding Thread, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
Computer readable storage medium specific embodiment of the present invention is restarted localization method with above-mentioned mobile terminal and is respectively implemented Example is essentially identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include 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 being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all 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 mobile terminal restarts localization method, which is characterized in that the mobile terminal restarts localization method and includes:
When the I2C bus for monitoring default key message point corresponding position in mobile terminal Kernel layer interface management module is in After abnormality, the corresponding abnormal mark of the I2C bus is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, identified according to the log identifier lookup and the log Associated log information, and obtain the progress information of process corresponding with the I2C bus;
Log is restarted according to the progress information and log information generation, positions the movement to restart log according to Terminal restarts reason.
2. mobile terminal as described in claim 1 restarts localization method, which is characterized in that described to monitor mobile terminal After the I2C bus of default key message point corresponding position is in abnormality in Kernel layer interface management module, described in reading The step of I2C bus corresponding abnormal mark includes:
After detecting the Monitoring instruction of default key message point in monitoring mobile terminal Kernel layer interface management module, according to The Monitoring instruction reads the state value of the key message point;
Determine whether the I2C bus of the key message point corresponding position is in abnormality according to the state value;
If the I2C bus is in abnormality, the corresponding abnormal mark of the I2C bus is read.
3. mobile terminal as claimed in claim 2 restarts localization method, which is characterized in that described to be read according to the Monitoring instruction The step of taking the state value of the key message point include:
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 I2C bus is in normal condition according to the first state value of preset quantity, read according to second Frequency is taken to read the second state value of the key message point preset quantity;
If all determining that the I2C bus is in normal condition according to second state value of preset quantity, read according to third Frequency is taken to read the third state value of the key message point, wherein second reading frequency is greater than described first and reads frequency Rate is less than the third reading frequency.
4. mobile terminal as claimed in claim 3 restarts localization method, which is characterized in that described to be pressed 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 includes:
If determining that the I2C bus is in abnormality 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 state of the key message point is read according to the 4th reading frequency Value.
5. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and Log is restarted in log information generation, with restart according to the step of log positioning mobile terminal restarts reason it Before, further includes:
Judge getting whether monitor the key message point pair in the first preset time after the progress information again The I2C bus of position is answered to be in abnormality;
If monitoring again in first preset time, the I2C bus of the key message point corresponding position is in abnormal shape State then stores the progress information.
6. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and Log is restarted in log information generation, with restart according to the step of log positioning mobile terminal restarts reason it Afterwards, further includes:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
7. as mobile terminal as claimed in any one of claims 1 to 6 restarts localization method, which is characterized in that described to monitor After the I2C bus of default key message point corresponding position is in abnormality in mobile terminal Kernel layer interface management module, Before the step of reading the I2C bus corresponding abnormal mark, further includes:
Determine that the recognition node of interface administration module call flow in Kernel layers described, load node, operation node, instruction are adjusted With node, striding course data communication node, unloading node, memory source application and release node and disk read-write operation section Point;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading section Key message point is set in point, memory source application and release node and disk read-write running node.
8. as mobile terminal as claimed in any one of claims 1 to 6 restarts localization method, which is characterized in that described to monitor After the I2C bus of default key message point corresponding position is in abnormality in mobile terminal Kernel layer interface management module, Before the step of reading the I2C bus corresponding abnormal mark, further includes:
It determines and monitors the corresponding line of Monitoring instruction whether the key message point corresponding position I2C bus is in abnormality Journey, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Mobile terminal that is upper and can running on the processor restarts finder, and it is described that the mobile terminal restarts finder The step of restarting localization method such as mobile terminal described in any item of the claim 1 to 8 is realized when processor executes.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium mobile whole Finder is restarted at end, and the mobile terminal, which is restarted, to be realized when finder is executed by processor as any in claim 1 to 8 The step of mobile terminal described in restarts localization method.
CN201811284938.5A 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium Pending CN109376044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811284938.5A CN109376044A (en) 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811284938.5A CN109376044A (en) 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109376044A true CN109376044A (en) 2019-02-22

Family

ID=65390557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811284938.5A Pending CN109376044A (en) 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109376044A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198790A (en) * 2019-12-23 2020-05-26 深圳市优必选科技股份有限公司 Robot testing method, robot testing device and robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040159A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108052437A (en) * 2017-12-28 2018-05-18 努比亚技术有限公司 Restart localization method, mobile terminal and computer readable storage medium
CN108196968A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040159A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108052437A (en) * 2017-12-28 2018-05-18 努比亚技术有限公司 Restart localization method, mobile terminal and computer readable storage medium
CN108196968A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198790A (en) * 2019-12-23 2020-05-26 深圳市优必选科技股份有限公司 Robot testing method, robot testing device and robot
CN111198790B (en) * 2019-12-23 2023-09-08 深圳市优必选科技股份有限公司 Robot testing method, robot testing device and robot

Similar Documents

Publication Publication Date Title
CN108052412A (en) Restart Fault Locating Method, mobile terminal and computer readable storage medium
CN108040159A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108920306A (en) What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN108121613A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN112148579B (en) User interface testing method and device
CN107291586A (en) The analysis method and device of a kind of application program
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
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
CN109753425A (en) Pop-up processing method and processing device
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109298964A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109582565A (en) Prevent the method, terminal and computer storage medium of application crashes
CN110113779A (en) Test method, system, test platform, mobile terminal and the medium of eSIM card
CN109165110A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109002547A (en) Journal file storage method, mobile terminal and computer readable storage medium
CN108182123A (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
CN108052437A (en) Restart localization method, mobile terminal and computer readable storage medium
CN108089937A (en) Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN109688611A (en) A kind of configuration method, device, terminal and the storage medium of frequency range parameter
CN109710338A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN108255631A (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
CN108076200A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

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: 20190222