CN106445721B - The method and mobile terminal of house dog fault-tolerant processing - Google Patents

The method and mobile terminal of house dog fault-tolerant processing Download PDF

Info

Publication number
CN106445721B
CN106445721B CN201610888175.XA CN201610888175A CN106445721B CN 106445721 B CN106445721 B CN 106445721B CN 201610888175 A CN201610888175 A CN 201610888175A CN 106445721 B CN106445721 B CN 106445721B
Authority
CN
China
Prior art keywords
blacklist list
cpu
dog
house dog
counter
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.)
Active
Application number
CN201610888175.XA
Other languages
Chinese (zh)
Other versions
CN106445721A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610888175.XA priority Critical patent/CN106445721B/en
Publication of CN106445721A publication Critical patent/CN106445721A/en
Application granted granted Critical
Publication of CN106445721B publication Critical patent/CN106445721B/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/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Alarm Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention is suitable for field of communication technology, provides the method and mobile terminal of a kind of house dog fault-tolerant processing, which comprises the blacklist list of process is arranged, includes one or more specified abnormal process in the blacklist list;When detecting the counter time-out of house dog, the abnormal process for causing time-out is closed according to the blacklist list, and reset the counter.The present invention realizes the fault-tolerant processing to single abnormal process, avoids the higher complete machine reset of cost and restarts, effectively simplifies house dog to the fault-tolerant recovery process of abnormal process, shorten the time of fault-tolerant processing.

Description

The method and mobile terminal of house dog fault-tolerant processing
Technical field
The invention belongs to field of communication technology more particularly to a kind of methods and mobile terminal of house dog fault-tolerant processing.
Background technique
Currently, house dog is embedded system and the common method for detecting abnormality of mobile terminal, for inspection software or firmly The idle situation of part long-time.Existing house dog usually feeds dog task by an external counter, reset circuit and one Composition.The dog task of feeding refers to that CPU periodically sends reset instruction to counter according to the count value of timer, to reset State counter.When the counter is not reset for a long time, preset threshold value can be reached, house dog will generate overtime interrupt, And whole system is restarted in recording exceptional process and reset in THP terminal handler process.
However, in some cases, be often as single abnormal process occupy CPU for a long time and cause to feed dog task without Method executes, and it is higher to carry out the cost that reset is restarted to whole system at this time, and expends the time.
Summary of the invention
In consideration of it, being seen the embodiment of the invention provides the method and mobile terminal of a kind of house dog fault-tolerant processing with simplification Door dog shortens fault-tolerant recovery time to the fault-tolerant recovery process of abnormal process.
In a first aspect, providing a kind of method of house dog fault-tolerant processing, which comprises
The blacklist list of setting process includes one or more specified abnormal process in the blacklist list;
When detecting the counter time-out of house dog, closed according to the blacklist list cause time-out it is abnormal into Journey, and reset the counter.
Further, described when detecting the counter time-out of house dog, caused according to blacklist list closing The abnormal process of time-out, and reset the counter and include:
When detecting the counter time-out of house dog, the processing status of the house dog is obtained;
If the processing status is pending for hello dog task dispatching, obtain hello the corresponding CPU of dog task works as advance Journey and process title;
Judge in the blacklist list whether to include the process title;
If in the blacklist list including the process title, confirms that current process is specified abnormal process, close The abnormal process is closed, and resets the counter.
Further, after resetting the counter, the method also includes:
If next cycle detects counter time-out again when reaching, generate reset signal to the CPU with Restart system.
Further, the method also includes:
If the processing status is when feeding dog task to be carrying out, to generate reset signal to the CPU to restart system.
Further, the method also includes:
If do not include the process title in the blacklist list, reset signal is generated to the CPU to restart System.
Second aspect, provides a kind of mobile terminal, and the mobile terminal includes:
Setup module includes one or more specified for the blacklist list of process to be arranged, in the blacklist list Abnormal process;
Processing module, for being caused according to blacklist list closing when detecting the counter time-out of house dog The abnormal process of time-out, and reset the counter.
Further, the processing module includes:
First acquisition unit, for obtaining the processing shape of the house dog when detecting the counter time-out of house dog State;
Second acquisition unit, if be that hello dog task dispatching is pending for the processing status, acquisition is described to feed dog task The current process and process title of corresponding CPU;
Judging unit, for judging in the blacklist list whether to include the process title;
Closing unit, if confirming that current process is specified for including the process title in the blacklist list Abnormal process, close the abnormal process, and reset the counter.
Further, the processing module further include:
First restarts unit, detects the counter time-out when if reaching for next cycle again, generates multiple Position signal is to the CPU to restart system.
Further, the processing module further include:
Second restarts unit, if being when feeding dog task to be carrying out, to generate reset signal extremely for the processing status The CPU is to restart system.
Further, the processing module further include:
Third restarts unit, if when for not including the process title in the blacklist list, generating reset letter Number to the CPU to restart system.
The third aspect, provides a kind of mobile terminal, and the mobile terminal includes:
Processor includes one or more specified for the blacklist list of process to be arranged, in the blacklist list Abnormal process;When detecting the counter time-out of house dog, closed according to the blacklist list cause time-out it is abnormal into Journey, and reset the counter.
Further, the processor, for obtaining the house dog when detecting the counter time-out of house dog Processing status;If the processing status is pending for hello dog task dispatching, obtain hello the corresponding CPU of dog task works as advance Journey and process title;Judge in the blacklist list whether to include the process title;If including in the blacklist list The process title then confirms that current process is specified abnormal process, closes the abnormal process, and reset the counting Device.
Compared with prior art, the embodiment of the present invention is by presetting the blacklist list of process, the blacklist column It include one or more specified abnormal process in table;When detecting the counter time-out of house dog, then according to the black name Single-row table closes the abnormal process for causing time-out, and resets the counter;To realize to the fault-tolerant of single abnormal process Processing attempts recovery system by closing single abnormal process, avoids the higher complete machine reset of cost and restarts, effectively simple Change house dog to the fault-tolerant recovery process of abnormal process, shortens the time of fault-tolerant processing.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other accompanying drawings can also be obtained according to these attached drawings.
Fig. 1 is the implementation flow chart of the method for the house dog fault-tolerant processing that first embodiment of the invention provides;
Fig. 2 is the implementation process of step S102 in the method for the house dog fault-tolerant processing that second embodiment of the invention provides Figure;
Fig. 3 is the schematic block diagram for the mobile terminal that third embodiment of the invention provides;
Fig. 4 is the schematic block diagram for the mobile terminal that fourth embodiment of the invention provides;
Fig. 5 is the schematic block diagram for the mobile terminal that fifth embodiment of the invention provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention includes one or more in the blacklist list by presetting the blacklist list of process A specified abnormal process;When detecting the counter time-out of house dog, then cause to surpass according to blacklist list closing When abnormal process, and reset the counter;It is single by closing to realize the fault-tolerant processing to single abnormal process Abnormal process avoids the higher complete machine of cost and resets and restart, effectively simplify house dog to exception to attempt recovery system The fault-tolerant recovery process of process, shortens the time of fault-tolerant processing.The embodiment of the invention also provides corresponding mobile terminal, with It is lower to be described in detail respectively.
Fig. 1 shows the implementation process of the method for the house dog fault-tolerant processing of first embodiment of the invention offer.
In embodiments of the present invention, the method for the house dog fault-tolerant processing is applied to mobile terminal, the mobile terminal Including but not limited to computer, smart phone, tablet computer, learning machine etc..
Refering to fig. 1, the method for the house dog fault-tolerant processing includes:
In step s101, the blacklist list of process is set, includes one or more specified in the blacklist list Abnormal process.
The embodiment of the present invention has pre-defined a blacklist list, and the blacklist list is for recording what user specified Abnormal process.Herein, the abnormal process is that system can be made to restore normal abnormal process after closing, usually malice Program or known defect process.
In step s 102, when detecting the counter time-out of house dog, caused according to blacklist list closing The abnormal process of time-out, and reset the counter.
When detecting the counter time-out of house dog, the embodiment of the present invention, which first looks at, feeds the corresponding CPU's of dog task Then current process determines whether the current process is different according to the blacklist list whether in the blacklist list Chang Jincheng if then closing the abnormal process, and resets the counter, to attempt to make system by closing abnormal process Restore normal, the higher complete machine of cost is avoided to reset.
As a preferable example of the invention, Fig. 2 shows the fault-tolerant places of house dog that second embodiment of the invention provides The specific implementation flow of step S102 in the method for reason.Referring to Fig.2, the step S102 includes:
In step s 201, when detecting the counter time-out of house dog, the processing status of the house dog is obtained.
Herein, the processing status of the house dog is carrying out including hello dog task or hello dog task dispatching is pending. When hello the dog task refers to that detection cycle reaches, CPU sends reset instruction so that the counter to the counter of house dog Reset the operation resetted.When counter time-out is not received by the reset instruction of CPU, counter will be generated a reset signal to CPU prevents CPU from crashing so that cpu reset.The embodiment of the present invention improves the processing logic of house dog overtime interrupt, works as detection When time-out occurs to the counter of house dog, reset signal is not generated directly and resets system to CPU, but first checks house dog Processing status.
In step S202, if the processing status is that hello dog task dispatching is pending, it is corresponding to obtain hello the dog task CPU current process and process title.
Herein, when house dog etc. is pending feeds dog task, the embodiment of the present invention detects waiting list, checks described feed The current process of the corresponding CPU of dog task obtains the process title of current process, thus know cause time-out current process and Its process title.
In step S203, judge in the blacklist list whether to include the process title.
After getting the process title for causing time-out, by each of the process title and the blacklist list Whether process title is compared one by one, to judge in the blacklist list to include the process title.
If including the process title in the blacklist list, S204 is thened follow the steps.
In step S204, confirmation current process is specified abnormal process, closes the abnormal process, and described in reset Counter.
Herein, when the embodiment of the present invention passes through the abnormal process for matching and overtime process being caused to be specified, then first lead to It crosses and closes the abnormal process to attempt recovery system, and counter O reset is resetted.To realize to single abnormal process Fault-tolerant processing, if the system can be restored normally, to avoid cost higher complete machine reset and restart, shorten fault-tolerant place The time of reason.
Further, after closing the abnormal process, system may also not restored normally, and the embodiment of the present invention is then led to Extension a cycle is crossed to restart system.After resetting the counter, the step S102 can also include:
In step S205, if next cycle detects the counter time-out again when reaching, reset letter is generated Number to the CPU to restart system.
Herein, in the counter time-out of house dog, detection influences to feed the process of dog task the embodiment of the present invention, if The abnormal process specified in the blacklist list, then close the abnormal process first to attempt recovery system, then extend one Whether the counter of a period observation house dog is still overtime, if so, generating reset signal again to CPU to restart system;From And not only simplifying house dog to the fault-tolerant processing process of specified abnormal process, guaranteed system can normally restart.
Further, in embodiment illustrated in fig. 2, if being by the processing status of the house dog acquired in step S201 When hello dog task is carrying out, the step S102 can also include:
If the processing status is when feeding dog task to be carrying out, to generate reset signal to the CPU to restart system.
Further, in embodiment illustrated in fig. 2, if after step S203 judgement, if the process title is not in institute It states in blacklist, the step S102 can also include:
If do not include the process title in the blacklist list, reset signal is generated to the CPU to restart System.
Herein, if in the blacklist list not including the process title, that is, cause time-out current process be not Specified abnormal process, then generate overtime interrupt, restarts system.
In conclusion the embodiment of the present invention is wrapped in the blacklist list by presetting the blacklist list of process Include one or more specified abnormal process;When detecting the counter time-out of house dog, then according to the blacklist list The abnormal process for causing time-out is closed, and resets the counter;To realize the fault-tolerant processing to single abnormal process, lead to It crosses and closes single abnormal process to attempt recovery system, avoid the higher complete machine reset of cost and restart, effectively simplify and see Door dog shortens the time of fault-tolerant processing to the fault-tolerant recovery process of abnormal process.
The schematic block diagram that Fig. 3 shows the mobile terminal of third embodiment of the invention offer is only shown for ease of description Part related to the embodiment of the present invention is gone out.
In embodiments of the present invention, the mobile terminal is for realizing above-mentioned Fig. 1 or Fig. 2 house dog as described in the examples The method of fault-tolerant processing.The mobile terminal includes but is not limited to computer, smart phone, tablet computer etc..
Refering to Fig. 3, the mobile terminal includes:
Setup module 31 refers in the blacklist list including one or more for the blacklist list of process to be arranged Fixed abnormal process;
Processing module 32, for being drawn according to blacklist list closing when detecting the counter time-out of house dog The abnormal process of time-out is played, and resets the counter.
The embodiment of the present invention has pre-defined a blacklist list, and the blacklist list is for recording what user specified Abnormal process.Herein, the abnormal process is that system can be made to restore normal abnormal process after closing, usually malice Program or known defect process.When detecting the counter time-out of house dog, the embodiment of the present invention, which first looks at, feeds dog Whether the current process of the corresponding CPU of task is in the blacklist list, then according to blacklist list closing Abnormal process, and the counter is resetted, to attempt recovery system by closing abnormal process, avoid the higher complete machine of cost It resets.
Further, the processing module 32 includes:
First acquisition unit 321, for obtaining the processing of the house dog when detecting the counter time-out of house dog State;
Second acquisition unit 322 is fed dog described in acquisition and is appointed if be that hello dog task dispatching is pending for the processing status It is engaged in the current process and process title of corresponding CPU;
Judging unit 323, for judging in the blacklist list whether to include the process title;
Closing unit 324, if confirming current process for including the process title in the blacklist list to refer to Fixed abnormal process closes the abnormal process, and resets the counter.
Herein, the processing status of the house dog is carrying out including hello dog task or hello dog task dispatching is pending. After counter time-out, if the processing status of house dog is that hello dog task dispatching is pending, detection causes the process of time-out, if The process is specified abnormal process, then attempts recovery system by closing the abnormal process, and by counter O reset It resets, to realize the fault-tolerant processing to single abnormal process;If the system can restore normally, avoid cost compared with High complete machine reset is restarted, and the time of fault-tolerant processing is effectively shortened.
Further, the processing module 32 further include:
First restarts unit 325, detects the counter time-out when if reaching for next cycle again, generates Reset signal is to the CPU to restart system.
Herein, the embodiment of the present invention is after closing the abnormal process to attempt recovery system, then extends a cycle It is whether still overtime come the counter of observing house dog, if so, generating reset signal again to CPU to restart system;Thus House dog is not only simplified to the fault-tolerant processing process of abnormal process, guaranteed system can normally restart.
Further, the processing module 32 further include:
Second restarts unit 326, if being when feeding dog task to be carrying out, to generate reset signal for the processing status To the CPU to restart system.
Further, the processing module 32 further include:
Third restarts unit 327, if generating reset when for not including the process title in the blacklist list Signal is to the CPU to restart system.
It should be noted that the mobile terminal in the embodiment of the present invention can be used to implement it is complete in above method embodiment The function of portion's technical solution, each functional module can be implemented according to the method in above method embodiment, specific Realization process can refer to the associated description in examples detailed above, and details are not described herein again.
It referring to fig. 4, is the schematic block diagram of mobile terminal provided in an embodiment of the present invention.The mobile terminal as shown in the figure It may include: one or more processors 501 (one is only shown in figure);One or more input equipments 502 (are only shown in figure One), one or more output equipments 503 (one is only shown in figure), memory 504.Above-mentioned processor 501, input equipment 502, output equipment 503, memory 504 are connected by bus 506.For storing instruction, processor 501 is used for memory 504 Execute the instruction that memory 504 stores.Wherein:
The processor 501 includes one or more in the blacklist list for the blacklist list of process to be arranged Specified abnormal process;When detecting the counter time-out of house dog, is closed according to the blacklist list and cause time-out Abnormal process, and reset the counter.
Optionally, the processor 501 is also used to: when detecting the counter time-out of house dog, being guarded the gate described in acquisition The processing status of dog;If the processing status is that hello dog task dispatching is pending, working as hello the corresponding CPU of dog task is obtained Preceding process and process title;Judge in the blacklist list whether to include the process title;If in the blacklist list Including the process title, then confirms that current process is specified abnormal process, close the abnormal process, and reset the meter Number device.
Optionally, the processor 501 is also used to: if next cycle detects that the counter is super again when reaching When, then reset signal is generated to the CPU to restart system.
Optionally, the processor 501 is also used to: if the processing status is when feeding dog task to be carrying out, to generate Reset signal is to the CPU to restart system.
Optionally, the processor 501 is also used to: if do not include the process title in the blacklist list, Reset signal is generated to the CPU to restart system.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be central processing unit (Central Processing Unit, CPU) and/or graphics processor (Graphic Processing Unit, GPU), it can also be in this base Other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated are combined on plinth Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..
Input equipment 502 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user Directional information), microphone, communication module (such as Wi-Fi module, 2G/3G/4G network module), physical button etc..
Output equipment 503 may include display (LCD etc.), loudspeaker etc..Wherein, display can be used for showing by user The information of input or the information etc. for being supplied to user.Display may include display panel, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel.Further, above-mentioned touch screen can cover over the display, when touch screen detects After touch operation on it or nearby, processor 501 is sent to determine the type of touch event, is followed by subsequent processing device 501 Corresponding visual output is provided over the display according to the type of touch event.
In the specific implementation, processor 501 described in the embodiment of the present invention, input equipment 502, output equipment 503, depositing Realization side described in the embodiment of the method for house dog fault-tolerant processing provided in an embodiment of the present invention can be performed in reservoir 504 Formula, details are not described herein.
Fig. 5 is a kind of schematic block diagram of mobile terminal provided in an embodiment of the present invention, which can be used for reality The method of the house dog fault-tolerant processing provided in existing above-described embodiment.
As shown in figure 5, mobile terminal 1200 may include RF (Radio Frequency, radio frequency) circuit 110, include The memory 120 of one or more (one is only shown in figure) computer readable storage mediums, input unit 130, display Unit 140, voicefrequency circuit 160, transmission module 170, includes one or more than one and (only shows one in figure sensor 150 It is a) processor 180 of processing core and the equal components of power supply 190.It will be understood by those skilled in the art that being moved shown in Fig. 5 Dynamic 1200 structure of terminal does not constitute the restriction to mobile terminal 1200, may include components more more or fewer than diagram, or Person combines certain components or different component layouts.Wherein:
RF circuit 110 realizes the mutual conversion of electromagnetic wave and electric signal, thus with logical for receiving and transmitting electromagnetic wave News network or other equipment are communicated.RF circuit 110 may include various existing for executing the circuit elements of these functions Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage Device etc..RF circuit 110 can carry out communicating or by wireless with various networks such as internet, intranet, wireless network Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN). Various communication standards, agreement and technology, including but not limited to global system for mobile communications can be used in above-mentioned wireless network (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division multiple Access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology (time Division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as U.S.'s electricity Gas and Electronic Engineering Association standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Memory 120 can be used for storing software program and module, as the corresponding program instruction of method in above-described embodiment/ Module, the software program and module that processor 180 is stored in memory 120 by operation, is answered thereby executing various functions With and data processing, i.e., setting process blacklist list, when house dog counter time-out according to the blacklist list Specified abnormal process is closed to attempt recovery system.Memory 120 may include high speed random access memory, may also include non-volatile Property memory, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some realities In example, memory 120 can further comprise the memory remotely located relative to processor 180, these remote memories can be with Pass through network connection to mobile terminal 1200.The example of above-mentioned network includes but is not limited to internet, intranet, local Net, mobile radio communication and combinations thereof.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and mobile terminal that are supplied to user 1200 various graphical user interface, these graphical user interface can be by figure, text, icon, video and any combination thereof To constitute.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come Configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 is detected at it On or near touch operation after, send processor 180 to determine the type of touch event, be followed by subsequent processing device 180 according to touching The type for touching event provides corresponding visual output on display panel 141.Although in Fig. 5, touch sensitive surface 131 and display surface Plate 141 is to realize input and input function as two independent components, but in some embodiments it is possible to by touch-sensitive table Face 131 and display panel 141 integrate and realize and output and input function.
Mobile terminal 1200 may also include at least one sensor 150, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when mobile terminal 1200 is moved in one's ear, Close display panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used for detecting tilt angle when static, And application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), the Vibration identification correlation function of identification mobile phone posture Energy (such as pedometer, percussion) etc.;The gyroscope that can also configure as mobile terminal 1200, barometer, hygrometer, thermometer, The other sensors such as infrared sensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, the audio that microphone 162 can provide between user and mobile terminal 1200 connect Mouthful.Electric signal after the audio data received conversion can be transferred to loudspeaker 161, by loudspeaker 161 by voicefrequency circuit 160 Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, by voicefrequency circuit 160 receive after be converted to audio data, then by after the processing of audio data output processor 180, through RF circuit 110 to be sent to ratio Such as another terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that Earphone jack, to provide the communication of peripheral hardware earphone Yu mobile terminal 1200.
Mobile terminal 1200 can help user send and receive e-mail, is clear by transmission module 170 (such as WiFi module) Look at webpage and access streaming video etc., it provides wireless broadband internet for user and accesses.Although Fig. 5 shows transmission mould Block 170, but it is understood that, and it is not belonging to must be configured into for mobile terminal 1200, it is can according to need completely not Change in the range of the essence of invention and omits.
Processor 180 is the control centre of mobile terminal 1200, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in memory 120, and calls and is stored in storage Data in device 120 execute the various functions and processing data of mobile terminal 1200, to carry out integral monitoring to mobile phone.It can Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 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 180.
Mobile terminal 1200 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system and processor 180 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or AC power source, recharging system, electricity The random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal 1200 can also include camera, bluetooth module etc., and details are not described herein.Specifically In the present embodiment, the display unit of mobile terminal is touch-screen display, and mobile terminal further includes having memory and one Perhaps more than one program one of them or more than one program is stored in memory, and be configured to by one or The execution of more than one processor of person states one or more than one program includes the instruction for performing the following operation:
The blacklist list of setting process includes one or more specified abnormal process in the blacklist list;
When detecting the counter time-out of house dog, closed according to the blacklist list cause time-out it is abnormal into Journey, and reset the counter.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of the mobile terminal, also include instructions for performing the following operations:
It is described when detecting the counter time-out of house dog, according to the blacklist list close cause time-out exception Process, and reset the counter and include:
When detecting the counter time-out of house dog, the processing status of the house dog is obtained;
If the processing status is pending for hello dog task dispatching, obtain hello the corresponding CPU of dog task works as advance Journey and process title;
Judge in the blacklist list whether to include the process title;
If in the blacklist list including the process title, confirms that current process is specified abnormal process, close The abnormal process is closed, and resets the counter.
In the third the possible embodiment provided based on the first or second of possible embodiment, Also include instructions for performing the following operations in the memory of the mobile terminal:
After resetting the counter, if next cycle detects the counter time-out again when reaching, produce Raw reset signal is to the CPU to restart system.
In the 4th kind of possible embodiment provided at second or based on the third possible embodiment, Also include instructions for performing the following operations in the memory of the mobile terminal:
If the processing status is when feeding dog task to be carrying out, to generate reset signal to the CPU to restart system.
In the 5th kind of possible embodiment provided at second or based on the third possible embodiment, Also include instructions for performing the following operations in the memory of the mobile terminal:
If do not include the process title in the blacklist list, reset signal is generated to the CPU to restart System.
The embodiment of the present invention includes one or more in the blacklist list by presetting the blacklist list of process A specified abnormal process;When detecting the counter time-out of house dog, then cause to surpass according to blacklist list closing When abnormal process, and reset the counter;It is single by closing to realize the fault-tolerant processing to single abnormal process Abnormal process avoids the higher complete machine of cost and resets and restart, effectively simplify house dog to exception to attempt recovery system The fault-tolerant recovery process of process, shortens the time of fault-tolerant processing.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the module of foregoing description It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed method and mobile terminal, Ke Yitong Other modes are crossed to realize.For example, embodiments described above is only schematical, for example, the module, unit are drawn Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some interfaces, the INDIRECT COUPLING of module or unit Or communication connection, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention, module can integrate in one processing unit, Can be each unit, module physically exists alone, can also be integrated in one unit with two or more units, module In.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. a kind of method of house dog fault-tolerant processing, which is characterized in that the described method includes:
The blacklist list of setting process includes one or more specified abnormal process in the blacklist list;
When detecting the counter time-out of house dog, does not generate reset signal directly and reset system to CPU, but obtain institute State the processing status of house dog;
If the processing status be feed dog task dispatching it is pending, obtain the current process for feeding the corresponding CPU of dog task and Process title;
Judge in the blacklist list whether to include the process title;
If in the blacklist list including the process title, confirms that current process is specified abnormal process, close institute Abnormal process is stated, and resets the counter, so that complete machine reset be avoided to restart;
If do not include the process title in the blacklist list, reset signal is generated to the CPU to restart system.
2. the method for house dog fault-tolerant processing as described in claim 1, which is characterized in that after resetting the counter, The method also includes:
If next cycle detects the counter time-out again when reaching, reset signal is generated to the CPU to restart System.
3. the method for house dog fault-tolerant processing as claimed in claim 2, which is characterized in that the method also includes:
If the processing status is when feeding dog task to be carrying out, to generate reset signal to the CPU to restart system.
4. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Setup module is specified in the blacklist list including one or more different for the blacklist list of process to be arranged Chang Jincheng;
Processing module, for when detecting the counter time-out of house dog, do not generate reset signal directly to CPU is to reset System, but obtain the processing status of the house dog;
The processing module includes:
First acquisition unit, for obtaining the processing status of the house dog when detecting the counter time-out of house dog;
Second acquisition unit, if pending for hello dog task dispatching for the processing status, obtaining the dog task of feeding and corresponding to CPU current process and process title;
Judging unit, for judging in the blacklist list whether to include the process title;
Closing unit, if for including the process title in the blacklist list, confirm current process be specify it is different Chang Jincheng closes the abnormal process, and resets the counter, so that complete machine reset be avoided to restart;
Third restarts unit, if generating reset signal extremely when for not including the process title in the blacklist list The CPU is to restart system.
5. mobile terminal as claimed in claim 4, which is characterized in that the processing module further include:
First restarts unit, detects the counter time-out when if reaching for next cycle again, generates reset letter Number to the CPU to restart system.
6. mobile terminal as claimed in claim 5, which is characterized in that the processing module further include:
Second restarts unit, if being when feeding dog task to be carrying out, to generate reset signal to described for the processing status CPU is to restart system.
7. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Processor includes one or more specified exceptions in the blacklist list for the blacklist list of process to be arranged Process;When detecting the counter time-out of house dog, does not generate reset signal directly and reset system to CPU, but obtain The processing status of the house dog;
If the processing status be feed dog task dispatching it is pending, obtain the current process for feeding the corresponding CPU of dog task and Process title;
Judge in the blacklist list whether to include the process title;
If in the blacklist list including the process title, confirms that current process is specified abnormal process, close institute Abnormal process is stated, and resets the counter, so that complete machine reset be avoided to restart;
If do not include the process title in the blacklist list, reset signal is generated to the CPU to restart system.
CN201610888175.XA 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing Active CN106445721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610888175.XA CN106445721B (en) 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610888175.XA CN106445721B (en) 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing

Publications (2)

Publication Number Publication Date
CN106445721A CN106445721A (en) 2017-02-22
CN106445721B true CN106445721B (en) 2019-07-12

Family

ID=58173937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610888175.XA Active CN106445721B (en) 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing

Country Status (1)

Country Link
CN (1) CN106445721B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333252B (en) * 2017-06-09 2020-12-08 中国联合网络通信集团有限公司 Communication exception handling method and device and smart card terminal
WO2019061407A1 (en) 2017-09-30 2019-04-04 华为技术有限公司 Method and device for handling timeout of system service
CN107659983A (en) * 2017-10-12 2018-02-02 上海斐讯数据通信技术有限公司 A kind of user can not connect the processing method and processing device of wireless aps
CN109491301A (en) * 2019-01-23 2019-03-19 东莞固高自动化技术有限公司 Industry internet intelligent controller based on edge calculations architectural framework
CN112097795B (en) * 2020-09-17 2023-02-24 北京航空航天大学 Method for high-speed diagnosis and low-speed transmission of fault of fiber-optic gyroscope

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748882A (en) * 1992-09-30 1998-05-05 Lucent Technologies Inc. Apparatus and method for fault-tolerant computing
CN101178662A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Monitoring method of embedded LINUX applications progress
CN102253863A (en) * 2011-06-15 2011-11-23 奇智软件(北京)有限公司 Method for closing processes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748882A (en) * 1992-09-30 1998-05-05 Lucent Technologies Inc. Apparatus and method for fault-tolerant computing
CN101178662A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Monitoring method of embedded LINUX applications progress
CN102253863A (en) * 2011-06-15 2011-11-23 奇智软件(北京)有限公司 Method for closing processes

Also Published As

Publication number Publication date
CN106445721A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US11169703B2 (en) Method for displaying graphical user interface and mobile terminal
CN106484555B (en) The method and mobile terminal of abnormality detection and recovery
CN106445721B (en) The method and mobile terminal of house dog fault-tolerant processing
CN104571787B (en) A kind of message display method and communication terminal
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN105306682B (en) The method and device of network connection switch is automatically closed
CN107203147B (en) Internet of Things network control system based on cloud platform and method
EP2851779A1 (en) Method, device, storage medium and terminal for displaying a virtual keyboard
CN106534550B (en) The reading method and mobile terminal of text information
CN104077184B (en) A kind of course control method and computer system of application program
CN106327166A (en) Information processing method and mobile terminal
CN103389863A (en) Display control method and device
CN106453839B (en) The method of adjustment and mobile terminal of antenna
CN105739856B (en) A kind of method and apparatus executing Object Operations processing
CN107278380A (en) Connect the method and terminal device of bluetooth equipment
CN104104656B (en) Give the method and device of account number for change
US20210132791A1 (en) Key control method, storage medium, and smart terminal
CN106817489B (en) The reminding method and mobile terminal of message
CN106657566B (en) The method of adjustment and mobile terminal of physical button
CN106326073B (en) The method and mobile terminal of information processing
CN106500751B (en) The calibration method and mobile terminal of proximity sensor
CN106326072A (en) Method for processing information and mobile terminal
CN107423598B (en) A kind of solution lock control method and mobile terminal
CN105100361B (en) The way of recording and device of mobile terminal
CN109427101A (en) A kind of method and system obtaining augmented reality image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant