CN104199760A - Method for monitoring computer crash with EC SCI function - Google Patents

Method for monitoring computer crash with EC SCI function Download PDF

Info

Publication number
CN104199760A
CN104199760A CN201410448531.7A CN201410448531A CN104199760A CN 104199760 A CN104199760 A CN 104199760A CN 201410448531 A CN201410448531 A CN 201410448531A CN 104199760 A CN104199760 A CN 104199760A
Authority
CN
China
Prior art keywords
sci
watchdog
variable
ecsci
function monitor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410448531.7A
Other languages
Chinese (zh)
Inventor
赵龙伟
陈乃阔
牛玉峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201410448531.7A priority Critical patent/CN104199760A/en
Publication of CN104199760A publication Critical patent/CN104199760A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for monitoring computer crash with an EC SCI function. According to the method, the mode that an ECtimer is used for being matched with SCI interrupting is used for solving the problem of computer crash. Compared with the prior art, the method for monitoring computer crash with the EC SCI function has the advantages of being reasonable in design, convenient to operate and the like, a terminal user does not need to operate an extra application program, and the trouble and the technology challenge are avoided for the terminal user.

Description

A kind of method with EC SCI function monitor computer corruption
Technical field
The present invention relates to computer corruption processing technology field, specifically a kind of method with EC SCI function monitor computer corruption.
Background technology
EC(Embed Controller, embedded controller) be 16 single-chip microcomputers, its inside itself also has the Flash of certain capacity to store the code of EC.In the process of opening in system, EC is controlling the sequential of most signal of interests.
SCI(Serial Communication Interface) mean " serial communication interface ", with respect to parallel communications, be a kind of general name of serial communication technology.SCI module is for serial communication, and communication protocol is embodied on the data layout of SCI.Conventionally the data layout of SCI is referred to as to programmable data form.
Watchdog is Linux " house dog ".In the microcomputer system being formed by single-chip microcomputer; because the work of single-chip microcomputer usually can be subject to the interference from external electromagnetic field; cause the race of program to fly; and be absorbed in endless loop; the normal operation of program is interrupted; cannot be worked on by monolithic processor controlled system; can cause the dead state that is absorbed in of whole system; there is unpredictable consequence; so for the consideration of single-chip microcomputer running status being carried out to Real-Time Monitoring; just produced a kind of chip that is specifically designed to monitoring Single Chip Microcomputer (SCM) program running status, be commonly called as " house dog ".
Nowadays, industrial computer is applied very general in all trades and professions.Industrial computer is in aviation information, vehicular applications, and extraordinary utilization, plant equipment, financial sector, intelligent transportation, control system, huge effect is being brought into play in each field such as Medical Devices.
Due to hardware or software, industrial computer crashes sometimes.As hardware heat dispersion, not good or operating system deadlock all can cause deadlock.Deadlock refers to operating system cisco unity malfunction.After deadlock, we will force to allow computer restart, and make the industrial computer again can operation.Here have a problem, industrial computer is to develop for industrial field control, and in the time that industrial computer moves, often nobody guards on industrial computer side, how do we detect industrial computer deadlock so?
General way has two kinds now.The first, makes of south bridge TCO timer SMI Handle and south bridge watchdog.The second, makes of the application program collocation EC of operating system.First kind of way can not accomplish that detecting crashes completely, if because the first system generation deadlock and cpu function is intact, TCO timer SMI interrupts still can triggering in the same old way, and this method can not thought computer corruption.Only have CPU to die, first kind of way just can work.The second way can solve the drawback that first kind of way is brought, but it requires an application program of the extra operation of terminal user.But it needs terminal user that extra application program is provided, and has brought trouble and technological challenge undoubtedly to terminal user.
Summary of the invention
Technical assignment of the present invention is to provide a kind of method with EC SCI function monitor computer corruption.
Technical assignment of the present invention is realized in the following manner, and described method is to use the mode of EC timer collocation SCI interruption to solve the problem of computer corruption.
The concrete steps of described the method comprise that EC detecting Watchdog variable and EC driver process two links of ECSCI.
The concrete steps of described EC detecting Watchdog variable are as follows:
First, in EC code, initialization Watchdog variable, and arrange 1 second Timer interrupt; In Timer interrupts, use Watchdog variable to carry out timing afterwards, interrupt holding to Host if SCI to 8 seconds, is sent out in timing; If Watchdog does not recover initial value distributing in 4 seconds of having no progeny in SCI; EC draws south bridge Init# pin, and CPU receives information restarting systems.
The concrete steps that described EC driver processes ECSCI are as follows:
BIOS declares EC Device at ASL, and ECSCI is arranged to corresponding GPE, corresponding EC space address is arranged to read and write to the address of Watchdog variate-value; When os starting, EC driver can read these information; In corresponding QEvent, add code, numerical value 12 is write in the EC SPACE of Watchdog variable address.
A kind of method with EC SCI function monitor computer corruption of the present invention compared to the prior art, there is the features such as reasonable in design, easy to operate, the method does not need an application program of the extra operation of terminal user, avoids having brought trouble and technological challenge to terminal user.
Brief description of the drawings
Accompanying drawing 1 is a kind of EC detecting Watchdog variable schematic diagram of the method with EC SCI function monitor computer corruption.
Accompanying drawing 2 is that a kind of EC driver of the method with EC SCI function monitor computer corruption processes ECSCI schematic diagram.
Embodiment
Embodiment 1:
The method of this use EC SCI function monitor computer corruption comprises that EC detecting Watchdog variable and EC driver process two links of ECSCI;
The concrete steps of EC detecting Watchdog variable: first, in EC code, initialization Watchdog variable, and the Timer in 1 second is set interrupts; In Timer interrupts, use Watchdog variable to carry out timing afterwards, timing, to 8 seconds, is sent out SCI and is interrupted holding to Host.
EC driver processes the concrete steps of ECSCI: BIOS at ASL declaration EC Device, and ECSCI is arranged to corresponding GPE, corresponding EC space address is arranged to read and write to the address of Watchdog variate-value; When os starting, EC driver can read these information; In corresponding QEvent, add code, numerical value 12 is write in the EC SPACE of Watchdog variable address.
Embodiment 2:
The method of this use EC SCI function monitor computer corruption comprises that EC detecting Watchdog variable and EC driver process two links of ECSCI;
The concrete steps of EC detecting Watchdog variable: first, in EC code, initialization Watchdog variable, and the Timer in 1 second is set interrupts; In Timer interrupts, use Watchdog variable to carry out timing afterwards, Watchdog does not recover initial value distributing in 4 seconds of having no progeny in SCI; EC draws south bridge Init# pin, and CPU receives information restarting systems.
EC driver processes the concrete steps of ECSCI: BIOS at ASL declaration EC Device, and ECSCI is arranged to corresponding GPE, corresponding EC space address is arranged to read and write to the address of Watchdog variate-value; When os starting, EC driver can read these information; In corresponding QEvent, add code, numerical value 12 is write in the EC SPACE of Watchdog variable address.
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to above-mentioned several embodiments.On the basis of disclosed embodiment, described those skilled in the art can the different technical characterictic of combination in any, thereby realizes different technical schemes.

Claims (4)

1. by a method for EC SCI function monitor computer corruption, it is characterized in that, described method is to use the mode of EC timer collocation SCI interruption to solve the problem of computer corruption.
2. a kind of method with EC SCI function monitor computer corruption according to claim 1, is characterized in that, the concrete steps of described the method comprise that EC detecting Watchdog variable and EC driver process two links of ECSCI.
3. a kind of method with EC SCI function monitor computer corruption according to claim 2, is characterized in that, the concrete steps of described EC detecting Watchdog variable are as follows:
First, in EC code, initialization Watchdog variable, and arrange 1 second Timer interrupt; In Timer interrupts, use Watchdog variable to carry out timing afterwards, interrupt holding to Host if SCI to 8 seconds, is sent out in timing; If Watchdog does not recover initial value distributing in 4 seconds of having no progeny in SCI; EC draws south bridge Init# pin, and CPU receives information restarting systems.
4. a kind of method with EC SCI function monitor computer corruption according to claim 2, is characterized in that, the concrete steps that described EC driver processes ECSCI are as follows:
BIOS declares EC Device at ASL, and ECSCI is arranged to corresponding GPE, corresponding EC space address is arranged to read and write to the address of Watchdog variate-value; When os starting, EC driver can read these information; In corresponding QEvent, add code, numerical value 12 is write in the EC SPACE of Watchdog variable address.
CN201410448531.7A 2014-09-04 2014-09-04 Method for monitoring computer crash with EC SCI function Pending CN104199760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410448531.7A CN104199760A (en) 2014-09-04 2014-09-04 Method for monitoring computer crash with EC SCI function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410448531.7A CN104199760A (en) 2014-09-04 2014-09-04 Method for monitoring computer crash with EC SCI function

Publications (1)

Publication Number Publication Date
CN104199760A true CN104199760A (en) 2014-12-10

Family

ID=52085056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410448531.7A Pending CN104199760A (en) 2014-09-04 2014-09-04 Method for monitoring computer crash with EC SCI function

Country Status (1)

Country Link
CN (1) CN104199760A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760314A (en) * 2016-03-14 2016-07-13 山东超越数控电子有限公司 Method for controlling starting-up screen luminance of system by virtue of EC SCI

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
方玲: ""看门狗"技术在单片机系统抗干扰设计中的应用", 《安徽电子信息职业技术学院学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760314A (en) * 2016-03-14 2016-07-13 山东超越数控电子有限公司 Method for controlling starting-up screen luminance of system by virtue of EC SCI

Similar Documents

Publication Publication Date Title
Feng et al. {P2IM}: Scalable and hardware-independent firmware testing via automatic peripheral interface modeling
KR101782246B1 (en) Methods and apparatus for controlled recovery of error information between independently operable processors
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
JP4934642B2 (en) Computer system
US20150149815A1 (en) Bios failover update with service processor having direct serial peripheral interface (spi) access
CN110399034B (en) Power consumption optimization method of SoC system and terminal
US11307965B2 (en) Managing and maintaining multiple debug contexts in a debug execution mode for real-time processors
US20220197780A1 (en) Managing and maintaining multiple debug contexts in a debug execution mode for real-time processors
CN102761439A (en) Device and method for detecting and recording abnormity on basis of watchdog in PON (Passive Optical Network) access system
CN104407958A (en) High-reliability system monitoring method and system
CN104461762A (en) Automatic restart method for a halted device
TW201426297A (en) System and method for securing baseboard management controller
US20220083455A1 (en) Managing and maintaining multiple debug contexts in a debug execution mode for real-time processors
CN114185603B (en) Control method of intelligent accelerator card, server and intelligent accelerator card
US9128838B2 (en) System and method of high integrity DMA operation
CN104199760A (en) Method for monitoring computer crash with EC SCI function
Feng et al. P $^ 2$ IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling (extended version)
US10198275B2 (en) Protecting firmware flashing from power operations
CN104750551A (en) A computer system and user-defined responding method thereof
CN106372498A (en) Software protection method and device
US11281482B2 (en) I/O emulation with abortion in virtualized environments including transfer of portions of non-real time I/O emulation to work threads prior to switching contexts
KR20110051957A (en) Error detection and recovery method of embedded system
EP2691853B1 (en) Supervisor system resuming control
CN107179911A (en) A kind of method and apparatus for restarting management engine
US20240012651A1 (en) Enhanced service operating system capabilities through embedded controller system health state tracking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141210

WD01 Invention patent application deemed withdrawn after publication