WO2020119532A1 - Processor control method and apparatus, and storage medium - Google Patents

Processor control method and apparatus, and storage medium Download PDF

Info

Publication number
WO2020119532A1
WO2020119532A1 PCT/CN2019/122785 CN2019122785W WO2020119532A1 WO 2020119532 A1 WO2020119532 A1 WO 2020119532A1 CN 2019122785 W CN2019122785 W CN 2019122785W WO 2020119532 A1 WO2020119532 A1 WO 2020119532A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
signal
restart
interactive interface
level
Prior art date
Application number
PCT/CN2019/122785
Other languages
French (fr)
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 中兴通讯股份有限公司
Publication of WO2020119532A1 publication Critical patent/WO2020119532A1/en

Links

Images

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/2236Detection 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 CPU or processors
    • G06F11/2242Detection 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 CPU or processors in multi-processor systems, e.g. one processor becoming the test master
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A processor control method and apparatus, a computer device, and a storage medium. The method comprises: determining whether level conversion occurs in an output signal of a timing circuit (S201); if level conversion occurs in the output signal of the timing circuit, detecting an interactive interface corresponding to a first processor is abnormal (S202); if the interactive interface corresponding to the first processor is abnormal, generating a restart signal (S203); and sending the restart signal to the first processor so as to restart the first processor (S204). A second processor actively monitors the operating state of the first processor by means of the timing circuit, if detecting that the first processor is abnormal, detects whether the interactive interface corresponding to the first processor is abnormal, and if the interactive interface is abnormal, generates a restart signal, and sends the restart signal to the first processor so as to restart the first processor.

Description

处理器控制方法、装置和存储介质Processor control method, device and storage medium
本公开要求享有2018年12月13日提交的名称为“处理器控制方法、装置和存储介质”的中国专利申请CN201811526932.4的优先权,其全部内容通过引用并入本文中。This disclosure claims the priority of the Chinese patent application CN201811526932.4, entitled "Processor Control Method, Device, and Storage Media," filed on December 13, 2018, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种处理器控制方法、装置、计算机设备和存储介质。The present disclosure relates to the field of communication technologies, and in particular, to a processor control method, device, computer equipment, and storage medium.
背景技术Background technique
5G平台,目前常见的多个处理器之间的交互接口包括:PCIe、USB、UART和GPIO等接口,类似以往的双模机架构,但在其中一个处理器软件发生异常时,可能会导致所有GPIO、UART等电平都锁住,进而这些接口可能维持高电平也可能低电平,这里所维持的高电平和低电平是随机性的,但无论维持哪种电平,这些接口都不能传递出去有效信息,因此交互接口失去功能,无法主动通知主处理器,主处理器无法获知第一处理器的状态。On the 5G platform, the current common interaction interfaces between multiple processors include: PCIe, USB, UART and GPIO interfaces, similar to the previous dual-mode machine architecture, but when one of the processor software exceptions may cause all GPIO, UART and other levels are locked, and these interfaces may maintain high or low levels. The high and low levels maintained here are random, but no matter which level is maintained, these interfaces are The effective information cannot be transmitted, so the interactive interface loses its function and cannot actively notify the main processor, and the main processor cannot learn the state of the first processor.
发明内容Summary of the invention
为了解决上述技术问题,本公开提供了一种第一处理器的异常处理方法。In order to solve the above technical problem, the present disclosure provides an exception handling method of the first processor.
一种处理器控制方法,多处理器包括主处理和第一处理器,包括:A processor control method, a multiprocessor includes a main processing and a first processor, including:
一种处理器控制方法,应用于至少包含第一处理器和第二处理器的处理器系统,第一处理器在工作状态下间隔第一时长发送复位信号至计时电路,所述方法包括:判断计时电路的输出信号是否发生电平转换;当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常;当与第一处理器对应的交互接口异常时,生成重启信号;向第一处理器发送重启信号,以使第一处理器重启。A processor control method is applied to a processor system including at least a first processor and a second processor. The first processor sends a reset signal to a timing circuit at a first time interval in the working state. The method includes: judging Whether the output signal of the timing circuit is level shifted; when the output signal of the timing circuit is level shifted, it is detected whether the interactive interface corresponding to the first processor is abnormal; when the interactive interface corresponding to the first processor is abnormal, it is generated Restart signal; send a restart signal to the first processor to restart the first processor.
一种处理器控制装置,应用于至少包含第一处理器和第二处理器的处理器系统,所述装置包括:发送模块,第一处理器在工作状态下间隔第一时长发送复位信号至计时电路;计时电路信号检测模块,用于判断计时电路的输出信号是否发 生电平转换;接口异常检测模块,用于当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常;信号生成模块,用于当与所述第一处理器对应的交互接口异常时,生成重启信号;重启模块,用于向所述第一处理器发送所述重启信号,以使第一处理器重启。A processor control device is applied to a processor system including at least a first processor and a second processor. The device includes: a sending module, and the first processor sends a reset signal to the timer at a first time interval in the working state Circuit; timing circuit signal detection module, used to determine whether the output signal of the timing circuit has a level shift; interface abnormality detection module, used to detect the interaction corresponding to the first processor when the output signal of the timing circuit has a level shift Whether the interface is abnormal; the signal generation module is used to generate a restart signal when the interactive interface corresponding to the first processor is abnormal; the restart module is used to send the restart signal to the first processor so that the first A processor restarts.
一种计算机设备,其中,包括:第一处理器、第二处理器和存储器,所述存储器存储有计算机程序,所述计算机程序被所述第二处理器执行时,使得所述第二处理器执行如下步骤:判断计时电路的输出信号是否发生电平转换;当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常;当与第一处理器对应的交互接口异常时,生成重启信号;向第一处理器发送重启信号,以使第一处理器重启。A computer device, comprising: a first processor, a second processor and a memory, the memory stores a computer program, and when the computer program is executed by the second processor, the second processor Perform the following steps: determine whether the output signal of the timing circuit has a level shift; when the output signal of the timing circuit has a level shift, detect whether the interaction interface corresponding to the first processor is abnormal; when the interaction corresponds to the first processor When the interface is abnormal, a restart signal is generated; a restart signal is sent to the first processor to restart the first processor.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:判断计时电路的输出信号是否发生电平转换;当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常;当与第一处理器对应的交互接口异常时,生成重启信号;向第一处理器发送重启信号,以使第一处理器重启。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are realized: judging whether the output signal of the timing circuit has a level shift; when the output signal of the timing circuit has a level shift At the time, detect whether the interactive interface corresponding to the first processor is abnormal; when the interactive interface corresponding to the first processor is abnormal, generate a restart signal; send a restart signal to the first processor to restart the first processor.
附图说明BRIEF DESCRIPTION
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The drawings herein are incorporated into and constitute a part of this specification, show embodiments consistent with this disclosure, and are used together with the specification to explain the principles of this disclosure.
为了更清楚地说明本公开实施例或一些情况中的技术方案,下面将对实施例或一些情况中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments or some cases of the present disclosure, the following will briefly introduce the drawings that need to be used in the embodiments or some cases. Obviously, for those of ordinary skill in the art, in On the premise of not paying creative labor, other drawings can also be obtained from these drawings.
图1为一个实施例中处理器控制方法的应用场景图;FIG. 1 is an application scenario diagram of a processor control method in an embodiment;
图2为一个实施例中处理器控制方法的流程示意图;2 is a schematic flowchart of a processor control method in an embodiment;
图3为一个实施例中处理器控制方法的应用场景图;3 is an application scenario diagram of a processor control method in an embodiment;
图4为一个实施例中处理器控制装置的结构框图;4 is a structural block diagram of a processor control device in an embodiment;
图5为一个实施例中计算机设备的内部结构框图。5 is a block diagram of the internal structure of a computer device in an embodiment.
具体实施方式detailed description
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实 施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments It is a part of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
图1为一个实施例中处理器控制方法的应用环境图。参照图1,该处理器控制方法应用于终端。该终端包括至少一个第一处理器110和第二处理器120。第一处理器110与第二处理器120通过接口连接,第一处理器110在工作状态下间隔第一时长发送复位信号至计时电路,第二处理器120判断计时电路的输出信号是否发生电平转换,当计时电路的输出信号发生电平转换时,检测与第一处理器110对应的交互接口是否异常,当与第一处理器110对应的交互接口异常时,生成重启信号,向第一处理器110发送重启信号,以使第一处理器重启。其中第一处理器110和第二处理器120为常见的处理器。第一处理器110与第二处理器120仅用于区分不同的处理器。FIG. 1 is an application environment diagram of a processor control method in an embodiment. Referring to FIG. 1, the processor control method is applied to a terminal. The terminal includes at least a first processor 110 and a second processor 120. The first processor 110 and the second processor 120 are connected through an interface. In the working state, the first processor 110 sends a reset signal to the timing circuit at a first time interval, and the second processor 120 determines whether the output signal of the timing circuit has a level Conversion, when the output signal of the timing circuit is level-shifted, it is detected whether the interactive interface corresponding to the first processor 110 is abnormal, and when the interactive interface corresponding to the first processor 110 is abnormal, a restart signal is generated to the first processing The processor 110 sends a restart signal to restart the first processor. The first processor 110 and the second processor 120 are common processors. The first processor 110 and the second processor 120 are only used to distinguish different processors.
如图2所示,在一个实施例中,提供了一种处理器控制方法。本实施例主要以该方法应用于上述图1中的第二处理器120来举例说明。参照图2,该处理器控制方法包括如下步骤:As shown in FIG. 2, in one embodiment, a processor control method is provided. This embodiment is mainly exemplified by the method applied to the second processor 120 in FIG. 1 described above. Referring to FIG. 2, the processor control method includes the following steps:
步骤S201,判断计时电路的输出信号是否发生电平转换。In step S201, it is determined whether the output signal of the timing circuit has a level shift.
步骤S202,当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常。Step S202, when the output signal of the timing circuit undergoes a level shift, it is detected whether the interactive interface corresponding to the first processor is abnormal.
在一个实施例中,计时电路是用于计时的电路,包括看门狗超时电路。复位信号是指第一处理器发送的表示第一处理器正常工作的提示信号,其中第一处理器的发送复位信号用于重启动计时电路,复位信号的发送时间间隔最大的时长为第一时长,通过发送复位信号来保证计时电路输出的电平信号未发生转换。其中第一处理器的工作状态包括正常和异常两种状态,其中第一处理器异常是指第一处理器死机,造成第一处理器死机的原因包括但不限于软件主程序死机和硬件异常导致的死机等。当计时电路的输出信号发生电平转换,表示第一处理器处于异常状态,检测第一处理器对应的交互接口,交互接口是指第一处理器和第二处理器之间的接口,交互接口包括但不限于PCIe、USB、UART、GPIO等。In one embodiment, the timing circuit is a circuit for timing, including a watchdog timeout circuit. The reset signal refers to a prompt signal sent by the first processor to indicate the normal operation of the first processor, wherein the reset signal sent by the first processor is used to restart the timing circuit, and the maximum time interval for sending the reset signal is the first duration , By sending a reset signal to ensure that the level signal output by the timing circuit has not been converted. The working state of the first processor includes normal and abnormal states. The abnormality of the first processor refers to the crash of the first processor. The causes of the crash of the first processor include, but are not limited to, software main program crashes and hardware abnormalities. Crash. When the output signal of the timing circuit changes level, it indicates that the first processor is in an abnormal state, and the interactive interface corresponding to the first processor is detected. The interactive interface refers to the interface between the first processor and the second processor. Including but not limited to PCIe, USB, UART, GPIO, etc.
在一个实施例中,第一时长大于第一处理器的休眠周期。第一处理器具有休眠-唤醒-休眠周期,由于一般的第一处理器的休眠时间大于主处理器的休眠时间,故在设置第一时长大于第一处理器的休眠时长时,可以避免第一处理器未出现异 常,仅处于休眠周期时带来的错误信息。In one embodiment, the first duration is greater than the sleep period of the first processor. The first processor has a sleep-wake-sleep cycle. Since the sleep time of the general first processor is greater than the sleep time of the main processor, the first time can be avoided when the first duration is set to be longer than the sleep duration of the first processor There is no abnormality in the processor, only the error message brought during the sleep cycle.
在一个实施例中,第一处理与第二处理器之间设置有看门狗超时电路,其中看门狗超时电路是单片机的一个组成部分,是一个计数器,第一处理器给看门狗超时电路一个数字,程序开始运行后看门狗超时电路开始倒计数。如果程序运行正常,过一段时间第一处理器应发出指令让看门狗超时电路进行复位,重新开始倒计数。如果看门狗超时电路减到0,超时电路输出的电平信号转换,就认为第一处理器没有正常工作,判断第一处理器发生异常。In one embodiment, a watchdog timeout circuit is provided between the first processing and the second processor, where the watchdog timeout circuit is a component of the single-chip microcomputer and is a counter, and the first processor times out the watchdog A number in the circuit, the watchdog timeout circuit starts to count down after the program starts running. If the program runs normally, after a while, the first processor should issue an instruction to reset the watchdog timeout circuit and restart the countdown. If the watchdog timeout circuit is reduced to 0, the level signal output by the timeout circuit is converted, it is considered that the first processor is not working normally, and it is judged that the first processor is abnormal.
在一个实施例中,检测与第一处理器对应的交互接口是否异常,包括:向与第一处理器对应的交互接口发送电平转换信号,检测与第一处理器对应的交互接口的电平是否转换,当未转换时,确定与第一处理器对应的交互接口异常。In one embodiment, detecting whether the interactive interface corresponding to the first processor is abnormal includes sending a level conversion signal to the interactive interface corresponding to the first processor to detect the level of the interactive interface corresponding to the first processor Whether to convert, when not converted, it is determined that the interactive interface corresponding to the first processor is abnormal.
在一个实施例中,电平转换信号是指对电平信号进行转换处理得到的电平信号,如提升电平或降低电平信号。在检测到第一处理器异常后,向第一处理器对应的交互接口发送电平转换信号,如降低GPIO的电平,发送对应的中断信号,响应中断信号,通过响应中断信号获取GPIO的电平,判断第一处理器向GPIO发送的电平是否发生变换,当第一处理器向GPIO发送的电平未发生变换时,表示交互接口出现异常。其中,中断信号是指已经预先定义好的用于表示中断的信号。In one embodiment, the level conversion signal refers to a level signal obtained by performing conversion processing on the level signal, such as a level-up or level-down signal. After detecting the abnormality of the first processor, it sends a level conversion signal to the interactive interface corresponding to the first processor, such as lowering the level of GPIO, sending a corresponding interrupt signal, responding to the interrupt signal, and obtaining the power of the GPIO by responding to the interrupt signal If the level sent by the first processor to the GPIO has changed, it means that the level sent by the first processor to the GPIO has not changed, indicating that the interactive interface is abnormal. Among them, the interrupt signal refers to a signal that has been previously defined to indicate interruption.
步骤S203,当与第一处理器对应的交互接口异常时,生成重启信号。Step S203, when the interactive interface corresponding to the first processor is abnormal, a restart signal is generated.
步骤S204,向第一处理器发送重启信号,以使第一处理器重启。Step S204: Send a restart signal to the first processor to restart the first processor.
在一个实施例中,重启信号是指用于指示处理器进行重启的计算机指令或电平信号。第一处理器对应的交互接口异常是指第一处理器对应的交互接口无法正常进行数据交互,为了恢复交互接口的正常数据交互,需要通过重启第一处理来实现,故在检测到交互接口后生产重启信号,向第一处理发送重启信号,通过重启信号重启第一处理器。In one embodiment, the restart signal refers to a computer instruction or level signal used to instruct the processor to restart. The abnormality of the interactive interface corresponding to the first processor means that the interactive interface corresponding to the first processor cannot perform data interaction normally. In order to restore the normal data interaction of the interactive interface, it is necessary to restart the first process to achieve it, so after detecting the interactive interface A restart signal is produced, a restart signal is sent to the first process, and the first processor is restarted by the restart signal.
在一个实施例中,重启信号为电源启动电平信号,生成与第一处理器对应的电源启动电平信号。电源启动电平信号是指用于启动电源的电平信号。In one embodiment, the restart signal is a power start level signal, and a power start level signal corresponding to the first processor is generated. The power supply start level signal refers to a level signal used to start the power supply.
在一个实施例中,获取与第一处理器相关联进程的现场数据,在向第一处理器发送重启信号后间隔第二时长,根据现场数据恢复与第一处理器相关联进程。In one embodiment, the field data of the process associated with the first processor is acquired, and the interval associated with the first processor is resumed based on the field data after the restart signal is sent to the first processor for a second time interval.
在一个实施例中,第一处理器相关联进程是指第一处理器在正常工作时正在执行的进程。现场数据是指各个进程正在处理的数据以及数据处理规则等。第二时长是预先设置的时间阈值,该时间阈值可以自定义设置,如可以根据第一处理器的类型等设置,不同类型的芯片重启时间不同,故可以根据芯片调整对应的间 隔时长。获取第一处理器相关进程的现场数据,在向第一处理器发送了重启信号后,间隔第二时长时,在恢复相关进程,选择在间隔第二时长后开始恢复相关进程,是因为第二时长包括了第一处理器的启动时间。如在发生异常之前,GPIO的电平处于高电平状态,则恢复GPIO的电平状态为高电平,和GPIO的电路的变换规律,如UART的电平处于低电平状态,则恢复UART的电平状态为低电平,和恢复UART的电平变换规律。In one embodiment, the process associated with the first processor refers to the process that the first processor is executing when it is working normally. On-site data refers to the data being processed by various processes and data processing rules. The second duration is a preset time threshold. The time threshold can be customized. For example, it can be set according to the type of the first processor. Different types of chips have different restart times. Therefore, the corresponding interval can be adjusted according to the chip. Obtain the field data of the first processor related process, after sending a restart signal to the first processor, when the interval is the second duration, in the recovery of the related process, choose to start the recovery of the relevant process after the second interval, because the second The duration includes the startup time of the first processor. If the level of the GPIO is at a high level before the abnormality occurs, the level of the GPIO will be restored to a high level, and the conversion rule of the GPIO circuit, if the level of the UART is at a low level, the UART will be restored The status of the level is low, and the level conversion law of the UART is restored.
上述处理器控制方法,应用于至少包含第一处理器和第二处理器的处理器系统,第一处理器在工作状态下间隔第一时长发送复位信号至计时电路,判断计时电路的输出信号是否发生电平转换,当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常,当与第一处理器对应的交互接口异常时,生成重启信号,向第一处理器发送重启信号,以使第一处理器重启。第二处理器通过计时电路主动对第一处理器的工作状态进行监控,当检测到第一处理器发生异常时,对第一处理器对应的交互接口的工作状态进行检测,当交互接口异常时,则主动生成重启信号,重启第一处理器。采用该处理监控方法,第一处理器的异常能够及时被第二处理器感知,引入第二处理器对第一处理器的干预,借助第二处理器的主动操作恢复第一处理器工作状态,从而实现对第一处理器的实时监控和异常的实时恢复,使得处理器系统更为稳定可靠。The above processor control method is applied to a processor system including at least a first processor and a second processor. In the working state, the first processor sends a reset signal to the timing circuit at a first time interval to determine whether the output signal of the timing circuit Level conversion occurs, when the output signal of the timing circuit changes level, it is detected whether the interactive interface corresponding to the first processor is abnormal, and when the interactive interface corresponding to the first processor is abnormal, a restart signal is generated to the first The processor sends a restart signal to restart the first processor. The second processor actively monitors the working state of the first processor through a timing circuit. When an abnormality of the first processor is detected, the working state of the interactive interface corresponding to the first processor is detected. When the interactive interface is abnormal , Then actively generate a restart signal to restart the first processor. With this processing monitoring method, the abnormality of the first processor can be sensed by the second processor in time, the intervention of the second processor on the first processor is introduced, and the working state of the first processor is restored by the active operation of the second processor, Therefore, real-time monitoring and abnormal real-time recovery of the first processor are realized, so that the processor system is more stable and reliable.
在一些情况中第一处理器不能主动告知第二处理器,第二处理器用与第一处理器之间的交互接口查询第一处理器的状态,再判断第一处理器的异常情况,且在查询时一般采用轮询的方式,由于只有在用户发起,需要第一处理器参与时,第二处理器才主动与第一处理器交互,故无法保证实时感知第一处理器的工作状态,第一处理器负责的数据、语音业务等无法传输给第二处理器,导致处理器系统无法正常运作。In some cases, the first processor cannot actively inform the second processor. The second processor uses the interactive interface with the first processor to query the status of the first processor, and then determines the abnormal condition of the first processor, and Polling is generally used for inquiries. Since the second processor only actively interacts with the first processor when it is initiated by the user and requires the participation of the first processor, it cannot guarantee real-time perception of the working state of the first processor. The data and voice services that a processor is responsible for cannot be transmitted to the second processor, resulting in the processor system not functioning normally.
在一个实施例中,上述处理器控制方法,如图3所示,系统为双处理器系统,包括主处理器和从处理器,主处理器为第二处理器,从处理器为第一处理器,主处理器和从处理之间设置有看门狗超时电路,通过从处理器喂狗,看门狗超时电路向主处理器反馈的电路。其中主处理器与从处理器之间的接口包括但不限于PCIe、USB、UART、GPIO等接口。In one embodiment, the above processor control method, as shown in FIG. 3, the system is a dual-processor system, including a master processor and a slave processor, the master processor is a second processor, and the slave processor is a first processing A watchdog timeout circuit is provided between the master processor and the slave processor. The slave processor feeds the dog, and the watchdog timeout circuit feeds back to the master processor. The interfaces between the master processor and the slave processor include but are not limited to PCIe, USB, UART, GPIO and other interfaces.
终端包含多处理器系统,当从处理器crash时,锁住主处理器和从处理器之间的接口的电平,如锁住GPIO、UART等接口的电平,各个接口的电平可能处于高电平状态也可能处于低电平状态,具体的状态与各个接口所执行的工作有关,电 平锁住后无法传递有效信息。在电平被锁住后,从处理器无法发送喂狗信号,看门狗超时电路超时后,向主处理发送异常终端信号,主处理器在收到异常中断信号时,立即查询正常交互接口是否有反馈,如拉低GPIO发出中断信号,查询对应的从处理器发往主处理器的GPIO的电平有无变化,如接口无电平变换,则保留现场,重启从处理器电路。The terminal contains a multi-processor system. When the slave processor crashes, the level of the interface between the master processor and the slave processor is locked, such as the level of the GPIO, UART and other interfaces. The level of each interface may be at The high-level state may also be in a low-level state. The specific state is related to the work performed by each interface. After the level is locked, valid information cannot be transmitted. After the level is locked, the slave processor cannot send the dog feed signal. After the watchdog timeout circuit times out, it sends an abnormal terminal signal to the main process. When the master processor receives the abnormal interrupt signal, it immediately queries whether the normal interactive interface is There is feedback, such as pulling down the GPIO to send an interrupt signal, querying whether the level of the corresponding GPIO sent from the slave processor to the master processor changes, if the interface has no level change, then keep the scene and restart the slave processor circuit.
由于移动终端的多处理器系统,都具有休眠-唤醒-休眠周期,从处理器先于主处理器休眠、并晚于主处理器唤醒。则从处理器在唤醒状态FEED(喂狗),设置看门延迟时间大于从处理器的休眠周期,在从处理器唤醒时、正常工作状态都可以喂狗,若从处理器软件crash,不能喂狗,如脉冲信号、两次电平逻辑变换,则看门狗超时电路超时,输出bark信号通知主处理器进行异常处理,不论其处于休眠状态还是唤醒状态,主处理器通过从处理器的供电电源的开关信号重启从处理器。Since the multi-processor system of the mobile terminal has a sleep-wake-sleep cycle, the slave processor sleeps before the master processor and wakes up later than the master processor. The slave processor is in the wakeup state FEED (feeding the dog), set the watchdog delay time to be greater than the sleep cycle of the slave processor, when the slave processor wakes up, the normal working state can feed the dog, if the slave software crashes, it cannot feed Dogs, such as pulse signals and two level logic transitions, the watchdog timeout circuit times out, and the bark signal is output to notify the main processor to perform exception handling, regardless of whether it is in a sleep state or awake state, the main processor supplies power from the slave processor The power switch signal restarts the slave processor.
上述处理器控制方法,通过第一处理器的Feed程序向看门狗超时电路喂狗,当第一处理器发生异常时,第一处理器的Feed程序不在向看门狗超时电路进行喂狗(Feed_In),导致看门狗超时电路超时,向第二处理器发送第一处理器发生异常的反馈信号(Bark_Out),通过第二处理器的发送查询请求,根据查询请求的查询结果确定第一处理器是否发生异常,若判断为发生异常则通过POWER_ON重启第一处理器,能够实时的了解到第一处理器的工作状态,及时对第一处理器的异常状态进行处理,保证移动终端的正常运行。In the above processor control method, the feed program of the first processor is used to feed the dog to the watchdog timeout circuit. When an abnormality occurs in the first processor, the feed program of the first processor is not to feed the dog to the watchdog timeout circuit ( Feed_In), causing the watchdog timeout circuit to time out, sending a feedback signal (Bark_Out) to the second processor that the first processor has an abnormality, sending the query request through the second processor, and determining the first processing according to the query result of the query request Whether there is an abnormality in the device, if it is determined that an abnormality occurs, restart the first processor through POWER_ON, you can understand the working state of the first processor in real time, and handle the abnormal state of the first processor in time to ensure the normal operation of the mobile terminal .
图2为一个实施例中处理器控制方法的流程示意图。应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。FIG. 2 is a schematic flowchart of a processor control method in an embodiment. It should be understood that although the steps in the flowchart of FIG. 2 are displayed in order according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in FIG. 2 may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed and completed at the same moment, but may be executed at different moments, the execution of these sub-steps or stages The order is not necessarily sequential, but may be executed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.
在一个实施例中,如图4所示,提供了一种处理器控制装置200,应用于至少包含第一处理器和第二处理器的处理器系统,所述装置包括:发送模块201,第一处理器在工作状态下间隔第一时长发送复位信号至计时电路。计时电路信号检测模块202,用于判断计时电路的输出信号是否发生电平转换。接口异常检测模块 203,用于当计时电路的输出信号发生电平转换时,检测与所述第一处理器对应的交互接口是否异常。信号生成模块204,用于当与所述第一处理器对应的交互接口异常时,生成重启信号。重启模块205,用于向所述第一处理器发送所述重启信号,以使所述第一处理器重启。In one embodiment, as shown in FIG. 4, a processor control device 200 is provided, which is applied to a processor system including at least a first processor and a second processor. The device includes: a sending module 201, a A processor sends a reset signal to the timing circuit at the first time interval in the working state. The timing circuit signal detection module 202 is used to determine whether the output signal of the timing circuit has a level shift. The interface abnormality detection module 203 is configured to detect whether the interactive interface corresponding to the first processor is abnormal when the output signal of the timing circuit changes level. The signal generation module 204 is configured to generate a restart signal when the interactive interface corresponding to the first processor is abnormal. The restart module 205 is configured to send the restart signal to the first processor to restart the first processor.
在一个实施例中,上述处理器控制装置200,还包括:数据获取模块,用于获取与第一处理器相关联进程的现场数据。进程恢复模块,用于在向第一处理器发送重启信号后间隔第二时长,根据现场数据恢复与第一处理器相关联进程。In one embodiment, the processor control device 200 described above further includes: a data acquisition module, configured to acquire field data of a process associated with the first processor. The process recovery module is configured to recover the process associated with the first processor according to the on-site data after a second time interval after sending the restart signal to the first processor.
在一个实施例中,接口异常检测模块203,包括:电平信号发送单元,用于向与第一处理器对应的交互接口发送电平转换信号。电平检测单元,用于检测与第一处理器对应的交互接口的电平是否转换。接口异常确定单元,用于当未转换时,确定与第一处理器对应的交互接口异常。In one embodiment, the interface abnormality detection module 203 includes: a level signal sending unit, configured to send a level conversion signal to an interactive interface corresponding to the first processor. The level detection unit is used to detect whether the level of the interactive interface corresponding to the first processor is switched. The interface abnormality determining unit is used to determine that the interactive interface corresponding to the first processor is abnormal when it is not converted.
在一个实施例中,处理器异常判断模块303中的第一时长大于第一处理器的休眠时间。In one embodiment, the first duration in the processor abnormality determination module 303 is greater than the sleep time of the first processor.
在一个实施例中,信号生成模块204还用于生成与第一处理器对应的电源启动电平信号。In one embodiment, the signal generation module 204 is also used to generate a power-on level signal corresponding to the first processor.
图5示出了一个实施例中计算机设备的内部结构图。该计算机设备可以是图1中的第二处理器120。如图5所示,该计算机设备包括该计算机设备包括通过系统总线连接的第一处理器、第二处理器、存储器、网络接口、输入装置和显示屏。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现处理器控制方法。该内存储器中也可储存有计算机程序,该计算机程序被第二处理器执行时,可使得第二处理器执行处理器控制方法。计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。FIG. 5 shows an internal structure diagram of a computer device in an embodiment. The computer device may be the second processor 120 in FIG. 1. As shown in FIG. 5, the computer device includes the computer device including a first processor, a second processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may cause the processor to implement the processor control method. A computer program may also be stored in the internal memory. When the computer program is executed by the second processor, the second processor may cause the second processor to execute the processor control method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or may be a button, a trackball or a touch pad provided on the casing of the computer device. It can be an external keyboard, touchpad or mouse.
本领域技术人员可以理解,图5中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的计算机设备的限定,计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the disclosed solution, and does not constitute a limitation on the computer device to which the disclosed solution is applied. The computer device may include a ratio More or fewer components are shown in the figure, or some components are combined, or have different component arrangements.
在一个实施例中,本公开提供的处理器控制装置可以实现为一种计算机程序的形式,计算机程序可在如图5所示的计算机设备上运行。计算机设备的存储器 中可存储组成该处理器控制装置的各个程序模块,比如,图4所示的计时模块201、判断模块202、信号接收模块203、查询模块204和重启模块205。各个程序模块构成的计算机程序使得处理器执行本说明书中描述的本公开各个实施例的处理器控制方法中的步骤。In one embodiment, the processor control apparatus provided by the present disclosure may be implemented in the form of a computer program, and the computer program may run on the computer device shown in FIG. 5. The memory of the computer device may store various program modules constituting the processor control device, for example, the timing module 201, the judgment module 202, the signal receiving module 203, the query module 204, and the restart module 205 shown in FIG. The computer program constituted by each program module causes the processor to execute the steps in the processor control method of each embodiment of the present disclosure described in this specification.
例如,图5所示的计算机设备可以通过如图4所示的处理器控制装置中的发送模块201执行第一处理器在工作状态下间隔第一时长发送复位信号至计时电路。计算机设备可通过计时电路信号检测模块202执行,用于判断计时电路的输出信号是否发生电平转换。计算机设备可通过接口异常检测模块203执行当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常。计算机设备可通过信号生成模块204执行当与第一处理器对应的交互接口异常时,生成重启信号。计算机设备可通过重启模块205执行向第一处理器发送重启信号,以使第一处理器重启。For example, the computer device shown in FIG. 5 may execute the sending module 201 in the processor control apparatus shown in FIG. 4 to execute the first processor to send a reset signal to the timing circuit at a first time interval in the working state. The computer device may be executed by the timing circuit signal detection module 202 and used to determine whether the output signal of the timing circuit has undergone a level shift. The computer device may perform, through the interface abnormality detection module 203, when the output signal of the timing circuit undergoes level conversion, detecting whether the interactive interface corresponding to the first processor is abnormal. The computer device may execute the signal generation module 204 to generate a restart signal when the interactive interface corresponding to the first processor is abnormal. The computer device may execute a restart signal sent to the first processor through the restart module 205 to restart the first processor.
在一个实施例中,提供了一种计算机设备,包括存储器、第一处理和第二处理器及存储在存储器上并可在第二处理器上运行的计算机程序,第二处理器执行计算机程序时实现以下步骤:判断计时电路的输出信号是否发生电平转换,当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常,当与第一处理器对应的交互接口异常时,生成重启信号,向第一处理器发送重启信号,以使第一处理器重启。In one embodiment, a computer device is provided, including a memory, a first process and a second processor, and a computer program stored on the memory and executable on the second processor, when the second processor executes the computer program The following steps are implemented: judging whether the output signal of the timing circuit has a level shift, when the output signal of the timing circuit has a level shift, detecting whether the interaction interface corresponding to the first processor is abnormal, and when the interaction corresponding to the first processor When the interface is abnormal, a restart signal is generated, and a restart signal is sent to the first processor to restart the first processor.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取与第一处理器相关联进程的现场数据,在向第一处理器发送重启信号后间隔第二时长,根据现场数据恢复与第一处理器相关联进程。In one embodiment, the processor also implements the following steps when executing the computer program: acquiring field data of a process associated with the first processor, and sending a restart signal to the first processor at a second time interval, and recovering from The process associated with the first processor.
在一个实施例中,检测与第一处理器对应的交互接口是否异常,包括:向与第一处理器对应的交互接口发送电平转换信号,检测与第一处理器对应的交互接口的电平是否转换,当未转换时,确定与第一处理器对应的交互接口异常。In one embodiment, detecting whether the interactive interface corresponding to the first processor is abnormal includes sending a level conversion signal to the interactive interface corresponding to the first processor to detect the level of the interactive interface corresponding to the first processor Whether to convert, when not converted, it is determined that the interactive interface corresponding to the first processor is abnormal.
在一个实施例中,第一时长大于第一处理器的休眠时间。In one embodiment, the first duration is greater than the sleep time of the first processor.
在一个实施例中,生成重启信号,包括:生成与第一处理器对应的电源启动电平信号。In one embodiment, generating the restart signal includes generating a power start level signal corresponding to the first processor.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:判断计时电路的输出信号是否发生电平转换,当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常,当与第一处理器对应的交互接口异常时,生成重启信号,向第一 处理器发送重启信号,以使第一处理器重启。In one embodiment, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the following steps are realized: whether the output signal of the timing circuit is level-shifted, when the timing circuit When the output signal is level-shifted, it is detected whether the interactive interface corresponding to the first processor is abnormal. When the interactive interface corresponding to the first processor is abnormal, a restart signal is generated and the restart signal is sent to the first processor, so that the first A processor restarts.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取与第一处理器相关联进程的现场数据,在向第一处理器发送重启信号后间隔第二时长,根据现场数据恢复与第一处理器相关联进程。In one embodiment, the processor also implements the following steps when executing the computer program: acquiring field data of a process associated with the first processor, and sending a restart signal to the first processor at a second time interval, and recovering from The process associated with the first processor.
在一个实施例中,检测与第一处理器对应的交互接口是否异常,包括:向与第一处理器对应的交互接口发送电平转换信号,检测与第一处理器对应的交互接口的电平是否转换,当未转换时,确定与第一处理器对应的交互接口异常。In one embodiment, detecting whether the interactive interface corresponding to the first processor is abnormal includes sending a level conversion signal to the interactive interface corresponding to the first processor to detect the level of the interactive interface corresponding to the first processor Whether to convert, when not converted, it is determined that the interactive interface corresponding to the first processor is abnormal.
在一个实施例中,第一时长大于第一处理器的休眠时间。In one embodiment, the first duration is greater than the sleep time of the first processor.
在一个实施例中,生成重启信号,包括:生成与第一处理器对应的电源启动电平信号。In one embodiment, generating the restart signal includes generating a power start level signal corresponding to the first processor.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art may understand that all or some of the steps, systems, and functional modules/units in the method disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components are executed in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules, or other data Sexual, removable and non-removable media. Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may Any other medium for storing desired information and accessible by a computer. In addition, it is well known to those of ordinary skill in the art that the communication medium generally contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium .
上述处理器控制方法、装置、计算机设备和存储介质,所述方法通过根据判断计时电路的输出信号是否发生电平转换,当计时电路的输出信号发生电平转换时,检测与第一处理器对应的交互接口是否异常,当与第一处理器对应的交互接口异常时,生成重启信号,向第一处理器发送重启信号,以使第一处理器重启。 第二处理通过计时电路主动监控第一处理器的工作状态,当检测到第一处理器发生异常时,检测与第一处理器对应的交互接口是否异常,当交互接口异常时,生成重启信号,向第一处理器发送重启信号,以使第一处理器重启,第二处理器实时主动的查询第一处理器的工作状态,能够及时对第一处理器出现的问题进行解决。The above-mentioned processor control method, device, computer equipment and storage medium, the method is based on judging whether the output signal of the timing circuit has a level shift, and when the output signal of the timing circuit has a level shift, detecting corresponding to the first processor Whether the interactive interface of the server is abnormal, when the interactive interface corresponding to the first processor is abnormal, a restart signal is generated, and a restart signal is sent to the first processor to restart the first processor. The second process actively monitors the working state of the first processor through a timing circuit. When an abnormality of the first processor is detected, it is detected whether the interactive interface corresponding to the first processor is abnormal, and when the interactive interface is abnormal, a restart signal is generated, A restart signal is sent to the first processor to restart the first processor, and the second processor actively queries the working state of the first processor in real time, so that the problems occurring in the first processor can be resolved in time.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or order between entities or operations. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above are only specific implementations of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.

Claims (10)

  1. 一种处理器控制方法,应用于至少包含第一处理器和第二处理器的处理器系统,所述第一处理器在工作状态下间隔第一时长发送复位信号至计时电路,所述方法包括:A processor control method is applied to a processor system including at least a first processor and a second processor. The first processor sends a reset signal to a timing circuit at a first time interval in the working state. The method includes :
    判断所述计时电路的输出信号是否发生电平转换;Judging whether the output signal of the timing circuit has a level shift;
    当所述计时电路的输出信号发生电平转换时,检测与所述第一处理器对应的交互接口是否异常;When the output signal of the timing circuit undergoes a level shift, it is detected whether the interactive interface corresponding to the first processor is abnormal;
    当与所述第一处理器对应的交互接口异常时,生成重启信号;When the interactive interface corresponding to the first processor is abnormal, a restart signal is generated;
    向所述第一处理器发送所述重启信号,以使所述第一处理器重启。Sending the restart signal to the first processor to restart the first processor.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    获取与所述第一处理器相关联进程的现场数据;Acquiring on-site data of processes associated with the first processor;
    在向所述第一处理器发送所述重启信号后间隔第二时长,根据所述现场数据恢复与所述第一处理器相关联进程。After sending the restart signal to the first processor for a second time interval, the process associated with the first processor is resumed according to the on-site data.
  3. 根据权利要求1所述的方法,其中,所述检测与所述第一处理器对应的交互接口是否异常,包括:The method according to claim 1, wherein the detecting whether the interactive interface corresponding to the first processor is abnormal includes:
    向与所述第一处理器对应的交互接口发送电平转换信号;Sending a level conversion signal to the interactive interface corresponding to the first processor;
    检测与所述第一处理器对应的交互接口的电平是否转换;Detecting whether the level of the interactive interface corresponding to the first processor is switched;
    当未转换时,确定与所述第一处理器对应的交互接口异常。When not converted, it is determined that the interactive interface corresponding to the first processor is abnormal.
  4. 根据权利要求1所述的方法,其中,所述第一时长大于所述第一处理器的休眠时间。The method of claim 1, wherein the first duration is greater than the sleep time of the first processor.
  5. 根据权利要求1至4任意一项所述的方法,其中,所述生成重启信号,包括:The method according to any one of claims 1 to 4, wherein the generating a restart signal includes:
    生成与所述第一处理器对应的电源启动电平信号。Generating a power-on level signal corresponding to the first processor.
  6. 一种处理器控制装置,应用于至少包含第一处理器和第二处理器的处理器系统,其中,所述装置包括:A processor control device is applied to a processor system including at least a first processor and a second processor, wherein the device includes:
    发送模块,用于至少包含第一处理器和第二处理器的处理器系统,所述第一处理器在工作状态下间隔第一时长发送复位信号至计时电路;A sending module, used for a processor system including at least a first processor and a second processor, the first processor sends a reset signal to the timing circuit at a first time interval in the working state;
    计时电路信号检测模块,用于判断所述计时电路的输出信号是否发生电平转换;The timing circuit signal detection module is used to determine whether the output signal of the timing circuit has a level shift;
    接口异常检测模块,用于当所述计时电路的输出信号发生电平转换时,检测与所述第一处理器对应的交互接口是否异常;An interface abnormality detection module, configured to detect whether the interactive interface corresponding to the first processor is abnormal when the output signal of the timing circuit changes level;
    信号生成模块,用于当与所述第一处理器对应的交互接口异常时,生成重启信号;A signal generating module, configured to generate a restart signal when the interactive interface corresponding to the first processor is abnormal;
    重启模块,用于向所述第一处理器发送所述重启信号,以使所述第一处理器重启。The restart module is configured to send the restart signal to the first processor to restart the first processor.
  7. 根据权利要求6所述的装置,其中,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    数据获取模块,用于获取与所述第一处理器相关联进程的现场数据;A data acquisition module, used to acquire field data of the process associated with the first processor;
    进程恢复模块,用于在向所述第一处理器发送所述重启信号后间隔第二时长,根据所述现场数据恢复与所述第一处理器相关联进程。The process recovery module is configured to recover the process associated with the first processor according to the on-site data after a second time interval after sending the restart signal to the first processor.
  8. 根据权利要求6所述的装置,其中,所述接口异常检测模块,还包括:The apparatus according to claim 6, wherein the interface abnormality detection module further comprises:
    电平信号发送单元,用于向与所述第一处理器对应的交互接口发送电平转换信号;A level signal sending unit, configured to send a level conversion signal to the interactive interface corresponding to the first processor;
    电平检测单元,用于检测与所述第一处理器对应的交互接口的电平是否转换;A level detection unit, configured to detect whether the level of the interactive interface corresponding to the first processor is switched;
    接口异常确定单元,用于当未转换时,确定与所述第一处理器对应的交互接口异常。The interface abnormality determining unit is configured to determine that the interactive interface corresponding to the first processor is abnormal when not converted.
  9. 一种计算机设备,其中,包括:第一处理器、第二处理器和存储器,所述存储器存储有计算机程序,所述计算机程序被所述第二处理器执行时,使得所述第二处理器执行如权利要求1至5中任一项所述方法的步骤。A computer device, comprising: a first processor, a second processor and a memory, the memory stores a computer program, and when the computer program is executed by the second processor, the second processor The steps of the method according to any one of claims 1 to 5 are performed.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至5中任一项所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are realized.
PCT/CN2019/122785 2018-12-13 2019-12-03 Processor control method and apparatus, and storage medium WO2020119532A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811526932.4A CN111324494B (en) 2018-12-13 2018-12-13 Processor control method, device and storage medium
CN201811526932.4 2018-12-13

Publications (1)

Publication Number Publication Date
WO2020119532A1 true WO2020119532A1 (en) 2020-06-18

Family

ID=71076275

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122785 WO2020119532A1 (en) 2018-12-13 2019-12-03 Processor control method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN111324494B (en)
WO (1) WO2020119532A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535447A (en) * 2021-06-30 2021-10-22 浙江中控技术股份有限公司 Safety control device with dual-processor structure and implementation method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489817A (en) * 2021-12-28 2022-05-13 深圳市腾芯通智能科技有限公司 Processor starting method, device, equipment and storage medium
CN115167933B (en) * 2022-09-08 2022-12-02 深圳市恒运昌真空技术有限公司 Dual-processor equipment, control method thereof and processor
CN116775366B (en) * 2023-08-23 2024-01-09 北京星河动力装备科技有限公司 Controller, processor switching method, electronic device, and storage medium
CN117290142A (en) * 2023-09-27 2023-12-26 镁佳(武汉)科技有限公司 Inter-core heartbeat interaction method, system, device, computer equipment and storage medium
CN117544584B (en) * 2024-01-09 2024-04-16 紫光恒越技术有限公司 Control method, device, switch and medium based on double CPU architecture

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039207A (en) * 2006-03-13 2007-09-19 华为技术有限公司 Intelligent optical network equipment having double CPU and method for realizing the same
CN101188828A (en) * 2006-11-16 2008-05-28 中兴通讯股份有限公司 Method for dual-processor mobile terminal to work status of process slave processor
CN205620932U (en) * 2016-03-23 2016-10-05 深圳市理邦精密仪器股份有限公司 Resetting means of multiple microprocessors system and monitor thereof
US20180032413A1 (en) * 2016-07-28 2018-02-01 Steering Solutions Ip Holding Corporation Uninterrupted data availability during failure in redundant micro-controller system
CN107967195A (en) * 2017-12-07 2018-04-27 郑州云海信息技术有限公司 A kind of fault repairing method and system based on dual control storage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039207A (en) * 2006-03-13 2007-09-19 华为技术有限公司 Intelligent optical network equipment having double CPU and method for realizing the same
CN101188828A (en) * 2006-11-16 2008-05-28 中兴通讯股份有限公司 Method for dual-processor mobile terminal to work status of process slave processor
CN205620932U (en) * 2016-03-23 2016-10-05 深圳市理邦精密仪器股份有限公司 Resetting means of multiple microprocessors system and monitor thereof
US20180032413A1 (en) * 2016-07-28 2018-02-01 Steering Solutions Ip Holding Corporation Uninterrupted data availability during failure in redundant micro-controller system
CN107967195A (en) * 2017-12-07 2018-04-27 郑州云海信息技术有限公司 A kind of fault repairing method and system based on dual control storage

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535447A (en) * 2021-06-30 2021-10-22 浙江中控技术股份有限公司 Safety control device with dual-processor structure and implementation method

Also Published As

Publication number Publication date
CN111324494A (en) 2020-06-23
CN111324494B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
WO2020119532A1 (en) Processor control method and apparatus, and storage medium
RU2427031C2 (en) Fast display initialisation and light up
US8522054B2 (en) Stand-by mode management method for use in a stand-by mode of a computer system with stand-by mode management module
EP2372491B1 (en) Power lock-up setting method and electronic apparatus using the same
WO2017036156A1 (en) Terminal reset control method, controller and system
US11662803B2 (en) Control method, apparatus, and electronic device
CN210348469U (en) Nested watchdog device
WO2023065601A1 (en) Server component self-test anomaly recovery method and device, system, and medium
CN111796954A (en) Watchdog control method, device, equipment and storage medium based on JVM
US9672048B2 (en) Electronic device and method for waking up operating system thereof
WO2023207187A1 (en) Upper computer wake-up methods, apparatus and system, electronic device, and storage medium
TWI493458B (en) Computer apparatus and reboot method thereof
CN107179911B (en) Method and equipment for restarting management engine
TWI489260B (en) Stand-by management method and related management module and computer system
CA2607435A1 (en) Software process monitor
JP5834438B2 (en) Printer and power supply control method thereof
CN114860512A (en) Method, device, equipment and system for detecting working state of SOC (system on chip) chip of vehicle
CN106201825A (en) A kind of intelligent back vision mirror running state monitoring method and system
TWI461905B (en) Computing device capable of remote crash recovery, method for remote crash recovery of computing device, and computer readable medium
JPH0764930A (en) Mutual monitoring method between cpus
KR100677121B1 (en) Apparatus and method for controlling status battery in low voltage
TWI551983B (en) Failure detection and switch method for multi-cpu system
JP2005107757A (en) Method and device for detecting runaway of program
CN104142832A (en) Computer and rebooting method thereof
CN210348410U (en) Equipment line network state switching device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19896344

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19896344

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.10.2021)