CN101188828A - Method for dual-processor mobile terminal to work status of process slave processor - Google Patents

Method for dual-processor mobile terminal to work status of process slave processor Download PDF

Info

Publication number
CN101188828A
CN101188828A CN 200610156888 CN200610156888A CN101188828A CN 101188828 A CN101188828 A CN 101188828A CN 200610156888 CN200610156888 CN 200610156888 CN 200610156888 A CN200610156888 A CN 200610156888A CN 101188828 A CN101188828 A CN 101188828A
Authority
CN
China
Prior art keywords
processor
cpu
mobile terminal
dual
method
Prior art date
Application number
CN 200610156888
Other languages
Chinese (zh)
Inventor
凌小兵
红 吴
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to CN 200610156888 priority Critical patent/CN101188828A/en
Publication of CN101188828A publication Critical patent/CN101188828A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/0706Error 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 the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error 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 the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0742Error 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 the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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

Abstract

The invention relates to a method for monitoring and treating the working state of a slave processor for a dual-processor mobile terminal. A watch dog timer is started up in a primary processor, a dog feeding program is contained in the content of the function body of the program of the slave processor, at the first preset time of the watch dog timer, if the dog feeding action is not received by the primary processor, a reset signal is sent by the primary processor to restart the slave processor. The invention selects a timer in a primary CPU as the watch dog of a slave CPU to monitor the working state of the slave CPU in real time, when the working state of the slave CPU can not be acquired by the user, the serious problems of the slave CPU such as an endless loop state and a dead state can be efficiently solved, thereby the robustness of the system is enhanced.

Description

双处理器移动终端监控处理从处理器工作状态的方法技术领域 Dual processor mobile terminal from the monitoring process TECHNICAL FIELD The processor operating state

本发明涉及双处理器移动终端,具体涉及对从处理器工作状态的监控方法。 The present invention relates to a dual processor mobile terminal, particularly to a method for monitoring the operating state of the processor. 背景技术 Background technique

在这个瞬息万变的信息社会,人们对移动终端的依赖程度越来越高。 In this rapidly changing information society, people's dependence on mobile terminal is increasing. 那些集通话、拍照、MP3、可视电话、手机电视、上网、游戏等多功能于一体的移动终端在当今市场上也如雨后春笋般涌现。 Those set of calls, camera, MP3, video telephony, mobile TV, Internet, games and other functions in one of the mobile terminals in the market today also sprung up. 加上处于2G与3G 交叠时期,许多移动终端都具备在两种或多种网络模式下工作的能力。 Plus overlap period in 2G and 3G, many mobile terminals are able to work in two or more network mode. 这种多功能、多模式的移动终端系统要靠以前的单颗CPU来出色完成已经不太现实,于是双CPU(双处理器,以下CPU即指处理器)移动终端系统应运而生。 The versatile multi-mode mobile terminal system depends on previous single CPU to complete its not realistic, then CPU bis (dual processor, the processor CPU refers to) the mobile terminal system emerged.

双CPU虽然能提高系统运行效率、使系统响应更快,但是系统硬件会因此变得更加复杂,如果没有很好的机制来协调两个CPU间的工作, 没有采取足够的防呆、防死机的措施,系统就会更多的受到可靠性问题的困扰。 Although dual-CPU system can improve operational efficiency, make the system more responsive, but the system hardware will therefore become more complicated if there is no good mechanism to coordinate the work between the two CPU, does not take adequate foolproof, anti-crash measures, the system will be more plagued by reliability problems.

一般双CPU系统有主从CPU之分,人机接口、显示器、扬声/拾音器、以及其它输入输出设备都是挂在主CPU上面。 Usually dual CPU system main points from the CPU, the man-machine interface, a display, a speaker / microphone, and other input and output devices are hanging above the main CPU. 从CPU可以用来单独实现某一种或几种非常重要的功能,也可以把它看作一种特殊外设,挂在主CPU上面。 Can be implemented separately from the CPU to one or a few very important function, it can also be seen as a special peripherals, hanging above the main CPU. 处理器在自身硬件设计缺陷和软件设计BUG,以及病毒入侵的情况下,或者在外界的撞击、电磁辐射等强干扰作用下,几乎不可避免的产生程序进入死循环或系统彻底的死机等异常现象。 In the case of its own processor hardware design and software design flaws BUG, ​​as well as viruses, or under strong impact outside interference and electromagnetic radiation, almost inevitably produce a thorough program to enter an infinite loop or system crashes and other anomalies . 主CPU发生异常,用户可以通过人机界面很容易发现,从而采取一些有效的应对措施。 The main CPU exception occurs, the user can easily see through the man-machine interface, in order to take some effective countermeasures. 但是从CPU发生异常时,用户一般不易获取相关信息,可能还会把它当作正常系统来使用。 But from the CPU exception occurs, the user generally difficult to obtain relevant information, it may also be used as a normal system. 发明内容 SUMMARY

本发明要解决的技术问题是,提出一种在双处理器移动终端中监控处理从处理器工作状态的方法。 The present invention is to solve the technical problem is to provide a method of monitoring the operating state of the processor in the dual processor processing a mobile terminal.

本发明的技术方案是,在主处理器启动一个看门狗定时器,在从处理器的程序里函数体内容中包含喂狗程序,在看门狗定时器的第一预定时间内,如果主处理器没有收到喂狗动作,主处理器发复位信号使从处理器重新启动。 Aspect of the present invention is, starting a watchdog timer in the main processor, the program contained in the feed the dog's function from the program processor body content, within a first predetermined time the watchdog timer, if the primary the processor does not receive the dogs operation, the main processor reset signal sent from the processor to restart.

所述主处理器的看门狗定时器在慢时钟域。 The master processor watchdog timer in the slow clock domain.

所述喂狗程序加在从处理器中的容易出故障的程序中。 The procedure is applied to the dogs susceptible to failure from a program in a processor.

在本发明中,从处理器中的任何一个包含喂狗程序的被监控没有执行喂狗动作,主处理器发复位信号使从处理器重新启动。 In the present invention, DOG containing from any program to be monitored without performing the dogs operation processor, the main processor reset signal sent from the processor restart.

所述喂狗动作是指发送重置信号。 Refers to the operation of the dogs transmits a reset signal.

如果在第二预定时间内从处理器连续异常次数大于预定数,则显示从处理器异常。 If, within a second predetermined time greater than a predetermined number of consecutive times from the exception processor, the display processor from the abnormality.

本发明通过主CPU内的一个定时器来作从CPU的看门狗,实时监控从CPU的工作情况,在用户无法获悉从CPU工作状态的情况下,能自动有效的解决从CPU The present invention is by a timer in the main CPU from the CPU watchdog to make real-time monitoring the operation of the CPU, in a case where the user can not be learned from the operation state of the CPU, automatically effective solution from the CPU

进入死循环、死机等严重问题,从而增强了系统的健壮性。 Enter an infinite loop of serious problems, such as crashes, thus increasing the robustness of the system. 附图说明 BRIEF DESCRIPTION

图l是本发明硬件连接示意图; 图2是本发明的流程示意图。 Figure l is a schematic diagram of the hardware connections of the present invention; FIG. 2 is a schematic flow diagram of the present invention.

具体实施方式 Detailed ways

本发明利用看门狗技术,实现主CPU实时监控从CPU的工作状态, 一旦从CPU 有异常发生,主CPU对从CPU进行RESET动作,使系统恢复到正常工作状态。 The present invention utilizes a watchdog technology, the main CPU from the real-time monitoring the operating state of the CPU, once the CPU has an abnormality occurs, the main CPU performs RESET operation from the CPU, restore the system to normal operation.

在主CPU的慢时钟域启动一个看门狗定时器,对从CPU,在那些容易出故障的 Starts a watchdog timer in the main CPU slow clock domain, to the CPU, those susceptible to failure of the

程序中,如等待査询的循环体内部、耗时很大的函数体内部包含"喂狗"部分。 Programs, such as waiting inside the loop query, consuming a lot of the functions that contain "feed the dog" section. 在看门狗定时器TO时间内,如果主CPU没有收到"喂狗"的动作,它将认为从CPU 发生故障,就会发RESET信号给从CPU,使从CPU重新启动,恢复正常工作。 In watchdog timer TO time, if the main CPU does not receive the "feed the dog" action, it will be considered from the CPU fails, it will send a signal to the RESET from the CPU, the CPU restarts to resume normal work from.

T0如果取5秒钟,对于工作时钟为几十甚至几百MHz的CPU来说,"喂狗" 占用几个毫秒,在5秒的周期中只占用极少的资源。 If T0 take 5 seconds for the clock to work tens or even hundreds of MHz CPU, the "feed the dog" occupied a few milliseconds, only takes up very little resources in five seconds cycle.

下面结合附图和具体实施方式进一步说明本发明方法的技术方案。 The following further illustrate the technical solutions of the method of the present invention in conjunction with the accompanying drawings and specific embodiments.

附图1为本发明的硬件连接图,主CPU与从CPU通过通讯口相互交互,可以以AT命令交互,也可以以自定义一套通信命令交互。 BRIEF hardware connection diagram 1 of the present invention, interact with each other through the main CPU communication port from the CPU, can AT command may be a communication command to customize interaction. 在主CPU的慢时钟域内启动一个看门狗定时器(TIMER),它能被从CPU发来的CLEAR(清除)信号重置。 Starts a watchdog timer (TIMER), it can be sent from the CPU in the CLEAR main CPU slow clock domain (clear) signal reset. 如果主CPU在设定的时间TO内没有收到来自从CPU的CLEAR信号,看门狗定时器则通过一个GPIO (—般功能引脚)引脚把从CPU的复位引脚置为有效态,然后松开, 模拟一个外界手动复位,使从CPU重新启动,摆脱死机或死循环的状态。 If the main CPU is not received within a set time TO CLEAR signal from the watchdog timer of the CPU through a GPIO (- pin-like function) from the pin to the reset pin of the CPU is set as an active state, and release, outside simulate a manual reset, restart from the CPU, get rid of the crash or an infinite loop condition.

从CPU中有N个被监控程序,也就是这些程序中包含"喂狗"动作,只要有一个程序异常,没有执行"喂狗"的语句,就会导致总的"喂狗"GPIO没有向主CPU发CLEAR命令,因此会使主CPU执行看门狗动作,致使从CPU复位。 There are N number from the CPU monitor program, which is included in the program "DOG" operation, a program exception as long as there is not performed "DOG" statement will lead total "DOG" is not in the main the GPIO CPU CLEAR command issued, and therefore make the main CPU perform watchdog operation, resulting in a reset from the CPU.

附图2为本发明的流程图,主CPU启动之后,如果接到一个启动从CPU的命令,发送一个开机信号给从CPU,同时监控从CPU的WORKDET引脚,判断从CPU启动是否完成。 Figure 2 is a flowchart of the present invention, after the start of the main CPU, if a command received from the CPU starts transmitting a start signal to the slave CPU, while monitoring WORKDET pin from the CPU, the CPU determines whether the startup is completed. 在从CPU启动完毕之后再启动看门狗定时器,在设置时间TO内,如果收到关从CPU的命令,主CPU就会先关看门狗定时器,再去关从CPU。 Restart the watchdog timer after completion of the CPU starts, within the set time TO, if you receive clearance from the CPU command, the main CPU will be first off the watchdog timer, go off from the CPU. 如果时间TO内定时器没有重置,主CPU就会发RESET信号给从CPU,重新启动从CPU。 If the timer is not reset within a time TO, the main CPU RESET signal will be sent to the slave CPU, restart the CPU.

如果在预设的时间内(如3分钟)从CPU连续异常次数大于n,就在LCD上显示从CPU异常,提示用户采取其它应对措施。 If (e.g., 3 minutes) from the continuous abnormal greater than n times the CPU within a predetermined time, abnormality is displayed from the CPU prompts the user to take other measures to deal with the LCD.

Claims (6)

1、一种双处理器移动终端监控处理从处理器工作状态的方法,其特征在于,在主处理器启动一个看门狗定时器,在从处理器的程序里函数体内容包含喂狗程序,在看门狗定时器的第一预定时间内,如果主处理器没有收到喂狗动作,主处理器发复位信号使从处理器重新启动。 1, a dual processor of the mobile terminal to monitor the processing from the processor operating state method, wherein a watchdog timer is started in the main processor, the dogs in the body of the function comprises a processor's program from the program, within a first predetermined time the watchdog timer, if the host processor does not receive the dogs operation, the main processor reset signal sent from the processor restart.
2、 权利要求1所述的双处理器移动终端监控处理从处理器工作状态的方法, 其特征在于,所述主处理器的看门狗定时器在慢时钟域。 2, dual-processor of the mobile terminal according to claim 1 A method of monitoring the operating state of the processor from the process, characterized in that the main processor in the slow clock domain watchdog timer.
3、 权利要求1所述的双处理器移动终端监控处理从处理器工作状态的方法, 其特征在于,所述喂狗程序包含在从处理器中容易出故障的程序中。 3, a dual processor mobile terminal according to claim 1 A method of monitoring the operating state of the processor from the process, wherein the program included in the program the dogs susceptible to failure from the processor.
4、 权利要求1或3所述的双处理器移动终端监控处理从处理器工作状态的方法,其特征在于,从处理器中的任何一个包含喂狗程序的被监控没有执行喂狗动作,主处理器发复位信号使从处理器重新启动。 4, a dual processor mobile terminal of claim 1 or claim 3, wherein the processor from the operating state monitoring method of treatment, wherein, the dogs do not perform any operation from the processor is monitored DOG contains a program, the main the processor reset signal sent from the processor to restart.
5、 权利要求1所述的双处理器移动终端监控处理从处理器工作状态的方法, 其特征在于,所述喂狗动作是指发送重置信号。 5, a dual processor mobile terminal according to claim 1 A method of monitoring the operating state of the processor from the process, characterized in that said operation means the dogs transmits a reset signal.
6、 权利要求1所述的双处理器移动终端监控处理从处理器工作状态的方法, 其特征在于,如果在第二预定时间内从处理器连续异常次数大于预定数,则显示从处理器异常。 6, dual-processor of the mobile terminal to monitor the processing from the method of claim 1, the processor operating state, wherein, if the number is greater than a predetermined number of consecutive abnormality from a second processor within a predetermined time, the display processor exceptions from .
CN 200610156888 2006-11-16 2006-11-16 Method for dual-processor mobile terminal to work status of process slave processor CN101188828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610156888 CN101188828A (en) 2006-11-16 2006-11-16 Method for dual-processor mobile terminal to work status of process slave processor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200610156888 CN101188828A (en) 2006-11-16 2006-11-16 Method for dual-processor mobile terminal to work status of process slave processor
PCT/CN2006/003777 WO2008058435A1 (en) 2006-11-16 2006-12-30 A method of mobile terminal with double processors mornitoring and controlling the working status processor

Publications (1)

Publication Number Publication Date
CN101188828A true CN101188828A (en) 2008-05-28

Family

ID=39401306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610156888 CN101188828A (en) 2006-11-16 2006-11-16 Method for dual-processor mobile terminal to work status of process slave processor

Country Status (2)

Country Link
CN (1) CN101188828A (en)
WO (1) WO2008058435A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615031B (en) 2009-05-07 2011-05-04 浙江中控研究院有限公司 Failure detection circuit of embedded dual processor system
CN102591237A (en) * 2012-02-29 2012-07-18 四川航天系统工程研究所 Electrical dual-core control system of underground risk-avoiding apparatus and control method thereof
WO2013152584A1 (en) * 2012-04-13 2013-10-17 华为技术有限公司 Method, device and single board for feeding dog in embedded system
CN103530197A (en) * 2013-10-29 2014-01-22 浙江宇视科技有限公司 Method for detecting and solving Linux system deadlock
CN104657228A (en) * 2015-03-04 2015-05-27 深圳市欧珀通信软件有限公司 Method and device for processing system exceptions of mobile terminal
CN104958082A (en) * 2013-12-19 2015-10-07 海信集团有限公司 Ultrasonic device
CN105425692A (en) * 2014-09-11 2016-03-23 发那科株式会社 Numerical control device
CN105527914A (en) * 2016-01-19 2016-04-27 杭州义益钛迪信息技术有限公司 Double-CPU reliably-designed base station power environment monitoring device and method
CN106326055A (en) * 2016-08-29 2017-01-11 四川九洲空管科技有限责任公司 Method for software and hardware crashing detection and resetting of airborne collision avoidance system
CN108897248A (en) * 2018-06-07 2018-11-27 浙江国自机器人技术有限公司 A kind of self―tuning control and mobile robot

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657235A (en) * 2015-03-04 2015-05-27 广东威创视讯科技股份有限公司 Self recovery system and state detecting method of self recovery system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4610013A (en) * 1983-11-08 1986-09-02 Avco Corporation Remote multiplexer terminal with redundant central processor units
US5360077A (en) * 1992-06-01 1994-11-01 Koyo Seiko Co., Ltd. Electric power steering apparatus
JPH07293320A (en) * 1994-04-21 1995-11-07 Nippondenso Co Ltd Electronic controller

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615031B (en) 2009-05-07 2011-05-04 浙江中控研究院有限公司 Failure detection circuit of embedded dual processor system
CN102591237A (en) * 2012-02-29 2012-07-18 四川航天系统工程研究所 Electrical dual-core control system of underground risk-avoiding apparatus and control method thereof
WO2013152584A1 (en) * 2012-04-13 2013-10-17 华为技术有限公司 Method, device and single board for feeding dog in embedded system
CN103530197A (en) * 2013-10-29 2014-01-22 浙江宇视科技有限公司 Method for detecting and solving Linux system deadlock
CN103530197B (en) * 2013-10-29 2017-06-13 浙江宇视科技有限公司 A kind of method for detecting and solving Linux system deadlock
CN104958082B (en) * 2013-12-19 2017-11-24 海信集团有限公司 A kind of ultrasonic device
CN104958082A (en) * 2013-12-19 2015-10-07 海信集团有限公司 Ultrasonic device
US9829874B2 (en) 2014-09-11 2017-11-28 Fanuc Corporation Numerical control device
CN105425692A (en) * 2014-09-11 2016-03-23 发那科株式会社 Numerical control device
CN104657228B (en) * 2015-03-04 2017-12-19 广东欧珀移动通信有限公司 A kind of system exception processing method and processing device of mobile terminal
CN104657228A (en) * 2015-03-04 2015-05-27 深圳市欧珀通信软件有限公司 Method and device for processing system exceptions of mobile terminal
CN105527914A (en) * 2016-01-19 2016-04-27 杭州义益钛迪信息技术有限公司 Double-CPU reliably-designed base station power environment monitoring device and method
CN106326055A (en) * 2016-08-29 2017-01-11 四川九洲空管科技有限责任公司 Method for software and hardware crashing detection and resetting of airborne collision avoidance system
CN106326055B (en) * 2016-08-29 2019-11-12 四川九洲空管科技有限责任公司 A kind of hardware of airborne collision avoidance system crashes detection and repositioning method
CN108897248A (en) * 2018-06-07 2018-11-27 浙江国自机器人技术有限公司 A kind of self―tuning control and mobile robot

Also Published As

Publication number Publication date
WO2008058435A1 (en) 2008-05-22

Similar Documents

Publication Publication Date Title
CN101754466B (en) Mobile virtualized base installation and mobile virtualized base platform
US8069362B2 (en) Automated electrical power savings in virtualization environments
US5675800A (en) Method and apparatus for remotely booting a computer system
JP3339482B2 (en) Distributed debugging device and a debugging method and recording medium recording a control program
JP3406594B2 (en) Computer power management system
CN103221919B (en) Method of provisioning firmware in an operating system (OS) absent services environment
US8370806B2 (en) Non-intrusive, thread-selective, debugging method and system for a multi-thread digital signal processor
US7356738B2 (en) Electronic apparatus having improved diagnostic interface
CN101052020B (en) Monitor method and system for automatically measuring executing process
US6625742B1 (en) Computer diagnostic having an LED to provide direct visual feedback as to the status of the standby power supply when power button is actuated
DE69923085T2 (en) Initializing and restarting operating systems
CN101378426B (en) Method and terminal for preventing disturb
US8863085B1 (en) Monitoring web applications
CN102193610A (en) Power management method and related power management system
TW201005509A (en) Client server system for analysis and performance tuning of remote graphics devices
CN101095112A (en) Mechanism to emulate user-level multithreading on an os-sequestered sequencer
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
CN101859258A (en) System management mode inter-processor interrupt redirection
CN100337197C (en) Guide program recorder and method for guarantee of online upgrading thereof
RU2520361C2 (en) Method of preventing false interruption of multi-page browser and corresponding device
US8060866B2 (en) Systems and methods for debugging multiple workflow instances
CN102752624A (en) Remote diagnosis method of television fault, television and system
US10191835B2 (en) Multi-threaded debugger support
US20070234123A1 (en) Method for detecting switching failure
US7783877B2 (en) Boot-switching apparatus and method for multiprocessor and multi-memory system

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C02 Deemed withdrawal of patent application after publication (patent law 2001)